Re: CPU IRQ 100%

2019-12-30 Пенетрантность Владислав Толмачев
Нет, не помогает

пн, 30 дек. 2019 г. в 10:14, grey :

> Не пробовали обновиться до последней версии 1.17.7? Помогло?
>
> Posted at Nginx Forum:
> https://forum.nginx.org/read.php?21,286474,286630#msg-286630
>
> ___
> nginx-ru mailing list
> nginx-ru@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-ru

-- 

С уважением Толмачев Владислав.
tolmachev.v...@gmail.com
skype: vladislaviki
___
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru

Re: Пустая переменная $upstream status при 499

2019-12-30 Пенетрантность yanda.a
Добрался до конфигурации, скину почти полную конфигурацию:

load_module
"/usr/lib64/nginx/modules/ngx_http_geoip_module.so";
load_module
"/usr/lib64/nginx/modules/ndk_http_module.so";
load_module
"/usr/lib64/nginx/modules/ngx_http_lua_module.so";
load_module
"/usr/lib64/nginx/modules/ngx_http_brotli_filter_module.so";
load_module
"/usr/lib64/nginx/modules/ngx_http_brotli_static_module.so";

usernginx   nginx;
worker_rlimit_nofile245760;
worker_processes24;
worker_priority -10;
worker_cpu_affinity auto
;

pid /var/run/nginx.pid;

pcre_jiton;

thread_pool local_pool  threads=8;  
   # Pool for local filesystem
thread_pool nfs_poolthreads=8;  
   # Pool for NFS-share

events {
worker_connections  10240;
use epoll;
multi_accepton;
accept_mutexoff;
}

http {
include mime.types;
default_typeapplication/octet-stream;

log_format  jsonescape=json 
   '{'
'"request_id":"$request_id",'
'"remote_addr":"$remote_addr",'
'"http_host":"$http_host",'
'"server_name":"$server_name",'
'"domain_tags":"$domain_tags",'
'"ssl_auth":"$ssl_client_verify",'
'"ssl_cn":"$ssl_client_s_dn",'
'"timestamp":"$time_local",'
'"status":"$status",'
'"request_time":"$request_time",'
'"upstream_name":"$upstream_name",' #
custom variable
'"upstream_status":"$upstream_status",'
'"upstream_queue_time":"$upstream_response_time",'
'"upstream_connect_time":"$upstream_response_time",'
'"upstream_header_time":"$upstream_response_time",'
'"upstream_response_time":"$upstream_response_time",'
'"upstream_cache_status":"$upstream_cache_status",'
'"upstream_addr":"$upstream_addr",'
'"request_method":"$request_method",'
'"request_uri":"$request_uri",'
'"protocol":"$server_protocol",'
'"bytes_received":"$request_length",'
'"bytes_sent":"$body_bytes_sent",'
'"referer":"$http_referer",'
'"user_agent":"$http_user_agent",'
'"x_requested_with":"$http_x_requested_with",'
'"scheme":"$scheme"'
'}';

access_log 
syslog:server=unix:/dev/log,tag=access_log,facility=local6  json;
error_log  
syslog:server=unix:/dev/log,tag=error_log,facility=local7   warn;

# Disk read settings
sendfileon;
sendfile_max_chunk  256k;
aio threads=local_pool;
aio_write   on;
directio4m; # this is disabled
in location where are used files from NFS-share
output_buffers  1   2m;
read_ahead  512k;   # ignored in Linux

# Buffers
large_client_header_buffers 4 32k;
client_body_buffer_size 128k;

# TCP-socket settings
keepalive_timeout   15  15;
keepalive_requests  1000;
tcp_nopush  on;
tcp_nodelay on;
reset_timedout_connection   on;

# Internal memory structures
open_file_cache max=100
inactive=40s;
open_file_cache_valid   60s;
open_file_cache_min_uses2;
open_file_cache_errors  on;
open_log_file_cache max=500 inactive=30m   
valid=10m   min_uses=1;
variables_hash_max_size 2048;
variables_hash_bucket_size  128;
server_names_hash_max_size  1024;
server_names_hash_bucket_size   128;