бэкенд на nginx+lua+postgres, со следущей конфигурацией -
user www-data;
worker_processes 8;
pid /var/run/nginx.pid;
events {
worker_connections 4096;
use epoll;
multi_accept on;
}
worker_rlimit_nofile 40000;
# Main Settings #
data_directory = '/var/lib/postgresql/9.1/main' # use data in another directory
hba_file = '/etc/postgresql/9.1/main/pg_hba.conf' # host-based authentication file
ident_file = '/etc/postgresql/9.1/main/pg_ident.conf' # ident configuration file
external_pid_file = '/var/run/postgresql/9.1-main.pid' # write an extra PID file
port = 5432 # (change requires restart)
max_connections = 1000 # (change requires restart)
unix_socket_directory = '/var/run/postgresql' # (change requires restart)
# Tuning #
ssl = false # (change requires restart)
shared_buffers = 1024MB # min 128kB
work_mem = 8MB # min 64kB
maintenance_work_mem = 64MB # min 1MB
wal_buffers = 2MB # min 32kB, -1 sets based on shared_buffers
checkpoint_segments = 16 # in logfile segments, min 1, 16MB each
checkpoint_completion_target = 0.7 # checkpoint target duration, 0.0 - 1.0
effective_cache_size = 4GB
# default_statistics_target = 100 # range 1-10000
# Locale settings
log_line_prefix = '%t '
datestyle = 'iso, mdy'
lc_messages = 'en_US.utf8' # locale for system error message
lc_monetary = 'en_US.utf8' # locale for monetary formatting
lc_numeric = 'en_US.utf8' # locale for number formatting
lc_time = 'en_US.utf8' # locale for time formatting
default_text_search_config = 'pg_catalog.english'
хотелось бы протестировать на отказоустойчивость и стабильность. как это лучше всего сделать? т.е. нужно как-то организовать «мини-ддос» на нужный мне URL, есть ли подобные онлайн-сервисы?