package main

import (
	"math/rand"
	"os"
	"runtime"
	"time"

	"github.com/pingcap-inc/pinsights/internal/apiserver"
)

func main() {
	rand.Seed(time.Now().UTC().UnixNano())
	if len(os.Getenv("GOMAXPROCS")) == 0 {
		runtime.GOMAXPROCS(runtime.NumCPU())
	}

	apiserver.NewApp("pinsights-apiserver").Run()
}
