Memory load gen:
free -m
CPU load gen:
stress --cpu 2 --timeout 60
or
Memory load gen:
free -m
CPU load gen:
stress --cpu 2 --timeout 60
or
Specify cache control for S3 content origin. When new content is pushed to S3, it gets refreshed in the edge servers in an hour without having to invalidate the content.
aws $PROFILE s3 cp content s3://$BUCKET/ --recursive --exclude ".git/*" --cache-control max-age=3600
To invaliate all the static content in a CloudFront Distribution, use the pattern in the AWS Console.
AWS:
Install polipo and follow instructions from brew
brew install polipo
Using with wget
$ cat ~/.wgetrc
header = Accept-Language: en-us,en;q=0.5
yum install https://dl.bintray.com/mitchellh/vagrant/vagrant_1.7.2_x86_64.rpm
Reference:
pip install watchdog -U
watchmedo shell-command --patterns="*.py;*.html;*.css;*.js" --recursive --command='echo "${watch_src_path}" && kill -HUP `cat gunicorn.pid`' . &
python manage.py run_gunicorn 127.0.0.1:80 --pid=gunicorn.pid
Reference:
Use Virtualenvironment wrapper.
Installation.
$ cat requirements.txt
gunicorn
$ pip install -r requirements.txt
SELinux Commands
getenforce
setenforce Permissive
setenforce Enforcing
To allow nginx access to specific folder