| Name | |||||||
|---|---|---|---|---|---|---|---|
| L1 cache reference | 0.5 | ns | |||||
| Branch mispredict | 5 | ns | |||||
| L2 cachereference | 7 | ns | 14x L1 cache | ||||
| Mutex lock/unlock | 25 | ns | |||||
| Main memory reference | 100 | ns | 20x L2 cache, 200x L1 cache | ||||
| Compress 1K bytes with Zippy | 3,000 | ns | 3 | us |
This will guide you through setting up a replica set in a docker environment using.
- Docker Compose
- MongoDB Replica Sets
- Mongoose
- Mongoose Transactions
Thanks to https://gist.github.com/asoorm for helping with their docker-compose file!
| <?php | |
| /* | |
| Plugin Name: Disable plugins when doing local dev | |
| Description: If the WP_LOCAL_DEV constant is true, disables plugins that you specify | |
| Version: 0.1 | |
| License: GPL version 2 or any later version | |
| Author: Mark Jaquith | |
| Author URI: http://coveredwebservices.com/ | |
| */ |
Moved to git repository: https://github.com/denji/nginx-tuning
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.
| sudo apt-get install ssl-cert | |
| sudo make-ssl-cert generate-default-snakeoil | |
| sudo usermod --append --groups ssl-cert yyuu | |
| ls -l /etc/ssl/certs/ssl-cert-snakeoil.pem /etc/ssl/private/ssl-cert-snakeoil.key |
Put this on your wp-config.php
/* That's all, stop editing! Happy blogging. */
define('FS_METHOD', 'direct');