HINTS.md
July 30, 2017 ยท View on GitHub
Reload on source code changes
$ go get -u github.com/kataras/rizla
$ cd $GOPATH/src/mywebapp
$ rizla main.go
Performance optimization tips for multi-core systems
enable Reuseport feature:
app.Run(siris.Addr(":8080"), siris.EnableReuseport)
// or before run:
app.Configure(siris.EnableReuseport)
- Enable the Reuseport feature like above
- Run a separate server instance per CPU core with GOMAXPROCS=1.
- Pin each server instance to a separate CPU core using taskset.
- Ensure the interrupts of multiqueue network card are evenly distributed between CPU cores. See this article for details.