Skip to content

Instantly share code, notes, and snippets.

@shavit
Last active June 25, 2016 00:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shavit/0afc2d21e52780f317176d68d40e18ee to your computer and use it in GitHub Desktop.
Save shavit/0afc2d21e52780f317176d68d40e18ee to your computer and use it in GitHub Desktop.
Optimize Nginx and workers
# workers
# grep processor /proc/cpuinfo | wc -l
#
# workers connections
# ulimit -n
# Check the architecture
grep --color=always -iw lm /proc/cpuinfo
# Buid go workers
# package main
# import "fmt"
# import "runtime"
# func main(){
# fmt.Printf("Hello %s/%s\n", runtime.GOOS, runtime.GOARCH)
# }
#
# Ubuntu:
# linux/amd64
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment