Skip to content

Instantly share code, notes, and snippets.

View mnhat3896's full-sized avatar
👽
404

Nhat Le mnhat3896

👽
404
View GitHub Profile

Keybase proof

I hereby claim:

  • I am mnhat3896 on github.
  • I am nhatle308 (https://keybase.io/nhatle308) on keybase.
  • I have a public key ASDSmxbmkuk_5NXyQlrEZwg961oHnYi6SIJp5ZFrJErDowo

To claim this, I am signing this object:

@mnhat3896
mnhat3896 / init-backend-results.md
Created April 26, 2021 03:36 — forked from neilpeterson/init-backend-results.md
Initializing Terraform Backend

When initalizing a Terraform backend, a .terraform/terraform.tfstate file is written to disk and can include storage account secrets.

Option 1

Include the Azure Storage key in the Terraform configuration.

Not ideal: the Storage access key is exposed both in the configuration and in the .terraform/terraform.tfstate file.

Configuration:

@mnhat3896
mnhat3896 / nginx-tuning.md
Created March 1, 2021 07:29 — forked from denji/nginx-tuning.md
NGINX tuning for best performance

NGINX Tuning For Best Performance

For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.

Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.

You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.