Additional Details & Logs
- Kong version :0.14.1
- Kong debug-level startup : kong start / error level
- Kong configuration :
/usr/local/kong/nginx.conf
worker_processes auto;
worker_cpu_affinity auto;
daemon on;
pid pids/nginx.pid;
error_log /opt/data/kong/logs/error.log error;
worker_rlimit_nofile 300000;
events {
worker_connections 102400;
multi_accept on;
}
http {
include ‘nginx-kong.conf’;
}
/usr/local/kong/kong-nginx.conf
charset UTF-8;
error_log syslog:server=kong-hf.mashape.com:61828 error;
error_log /opt/data/kong/logs/error.log error;
server_tokens off;
include mime.types;
default_type application/octet-stream;
client_header_buffer_size 32k;
keepalive_timeout 300s 300s;
keepalive_requests 10000;
log_format main ‘$time_local $remote_addr $status $server_addr $http_host “$request” $body_bytes_sent “$http_referer” $http_user_agent $upstream_addr $request $upstream_addr $upstream_response_time $request_time $http_x_forwarded_for $http_tenant_id’;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
#reset_timeout_connection on;
#limit_conn_zone $binary_remote_addr zone=addr:5m;
#limit_conn addr 100;
gzip on;
gzip_disable “msie6”;
gzip_static on;
gzip_proxied any;
gzip_min_length 1000;
gzip_comp_level 4;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
open_file_cache max=100000 inactive=20s;
open_file_cache_valid 30s;
open_file_cache_min_uses 2;
open_file_cache_errors on;
client_max_body_size 50m;
client_body_buffer_size 128k;
proxy_connect_timeout 300;
proxy_send_timeout 300;
proxy_read_timeout 300;
proxy_buffer_size 64k;
proxy_buffers 4 32k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;
proxy_ignore_client_abort on;
client_max_body_size 50m;
proxy_ssl_server_name on;
underscores_in_headers on;
lua_package_path ‘./?.lua;./?/init.lua;;;’;
lua_package_cpath ‘;;’;
lua_socket_pool_size 30;
lua_max_running_timers 4096;
lua_max_pending_timers 16384;
lua_shared_dict kong 50m;
lua_shared_dict kong_db_cache 256m;
lua_shared_dict kong_db_cache_miss 120m;
lua_shared_dict kong_locks 80m;
lua_shared_dict kong_process_events 500m;
lua_shared_dict kong_cluster_events 50m;
lua_shared_dict kong_healthchecks 50m;
lua_shared_dict kong_rate_limiting_counters 120m;
lua_socket_log_errors off;
injected nginx_http_* directives
lua_shared_dict prometheus_metrics 5m;
…