- Optimization goals for large servers
- Nginx configuration for large servers
- Nginx tuning notes for high load
- PHP-FPM configuration for large servers
- Recommended php.ini settings for high load
- Redis configuration for large servers
- MySQL configuration for Init Manga (large servers)
- Recommended VPS providers for running Init Manga
- Conclusion
Optimization goals for large servers
- Prioritize high parallel processing to avoid CPU bottlenecks.
- Use Redis as the central cache layer to minimize MySQL load.
- Optimize MySQL for read-heavy workloads, complex queries, and large datasets.
- Ensure Nginx handles a large number of connections reliably during traffic peaks.
Nginx configuration for large servers
On large servers, Nginx can push concurrency much higher, while still following the rule of only increasing what is actually needed.
user www-data;
worker_processes auto;
pid /run/nginx.pid;
error_log /var/log/nginx/error.log crit;
include /etc/nginx/modules-enabled/*.conf;
worker_rlimit_nofile 300000;
events {
worker_connections 16384;
use epoll;
multi_accept on;
}
http {
sendfile on;
tcp_nopush on;
tcp_nodelay on;
types_hash_max_size 8192;
server_tokens off;
keepalive_timeout 30;
keepalive_requests 200000;
reset_timedout_connection on;
include /etc/nginx/mime.types;
default_type application/octet-stream;
access_log off;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_prefer_server_ciphers on;
open_file_cache max=500000 inactive=30s;
open_file_cache_valid 60s;
open_file_cache_min_uses 2;
open_file_cache_errors on;
gzip on;
gzip_static on;
gzip_vary on;
gzip_proxied any;
gzip_comp_level 5;
gzip_min_length 1024;
gzip_buffers 64 8k;
gzip_http_version 1.1;
gzip_types
text/plain
text/css
application/json
application/javascript
application/xml
image/svg+xml
font/ttf
font/otf;
client_body_buffer_size 512k;
client_header_buffer_size 128k;
large_client_header_buffers 4 512k;
client_max_body_size 256m;
fastcgi_buffering on;
fastcgi_buffers 32 16k;
fastcgi_buffer_size 64k;
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}
Nginx tuning notes for high load
worker_connections 16384: Suitable when handling tens of thousands of concurrent connections.open_file_cache 500000: Highly effective for manga sites serving millions of image files.keepalive_requests 200000: Reduces the overhead of creating new connections during heavy traffic.
PHP-FPM configuration for large servers
At this scale, PHP-FPM must handle a very large volume of dynamic requests, especially filtering and recommendation logic.
pm = dynamic
pm.max_children = 64
pm.start_servers = 16
pm.min_spare_servers = 12
pm.max_spare_servers = 32
pm.max_requests = 500
This configuration is well suited for 16 vCPU systems, enabling strong parallel processing while keeping RAM usage under control.
Recommended php.ini settings for high load
post_max_size = 256M
upload_max_filesize = 256M
max_file_uploads = 256
memory_limit = 1024M
max_execution_time = 60
max_input_time = 60
There is no need to push memory_limit too high per request; stability is achieved by running more consistent workers instead.
Redis configuration for large servers
Redis is the backbone of Init Manga caching on large servers, significantly reducing MySQL load and accelerating query performance.
maxmemory 8gb
maxmemory-policy allkeys-lru
save ""
tcp-backlog 65536
timeout 300
tcp-keepalive 300
maxclients 100000
loglevel warning
Allocating 8GB of RAM to Redis enables deep caching, keeps hot data resident longer, and significantly reduces cache misses.
MySQL configuration for Init Manga (large servers)
At this stage, MySQL focuses on handling complex queries and large datasets, with the InnoDB buffer pool consuming a substantial portion of system RAM.
[mysqld]
bind_address = 127.0.0.1
max_connections = 500
connect_timeout = 10
wait_timeout = 300
interactive_timeout = 300
table_open_cache = 2048
table_definition_cache = 2048
thread_cache_size = 128
query_cache_type = 0
query_cache_size = 0
tmp_table_size = 256M
max_heap_table_size = 256M
default_storage_engine = InnoDB
innodb_buffer_pool_size = 16G
innodb_buffer_pool_instances = 8
innodb_log_file_size = 1024M
innodb_log_buffer_size = 128M
innodb_flush_log_at_trx_commit = 2
innodb_flush_method = O_DIRECT
innodb_io_capacity = 2000
innodb_read_io_threads = 8
innodb_write_io_threads = 8
slow_query_log = 1
long_query_time = 1
skip_log_bin
Recommended VPS providers for running Init Manga
To ensure the configurations above deliver their intended performance, selecting a stable VPS infrastructure from the beginning is critical. Based on real-world Init Manga deployments, the following providers offer both strong performance and long-term reliability.
Vultr is an excellent choice if you need international VPS infrastructure, powerful hardware, stable CPU performance, and flexible scaling from small to large servers. It is particularly suitable for Init Manga sites targeting global traffic or multiple regions.
Veesp is well suited for projects that require stable VPS performance, high bandwidth, near-offshore locations, and long-term consistency. With Init Manga, Veesp performs well on both mid-range and large servers, especially when combined with Redis and static file caching.
Both providers are suitable for directly applying the LEMP configurations outlined above, helping Init Manga run stably and scale smoothly as traffic continues to grow.
Conclusion
With a large server (16 vCPU, 32GB RAM or more), Init Manga can sustain high traffic levels for extended periods when LEMP is configured correctly. Nginx reliably handles massive connection loads, PHP-FPM processes dynamic requests in parallel, Redis provides deep caching, and MySQL focuses on heavy queries. Most importantly, this configuration remains stable, easy to monitor, and ready to scale as Init Manga continues to grow.
Comments