From nakano.hiroaki @ nttcom.co.jp Thu Sep 12 17:52:36 2013 From: nakano.hiroaki @ nttcom.co.jp (=?UTF-8?B?5Lit6YeO44CA5a6P5pyX?=) Date: Thu, 12 Sep 2013 17:52:36 +0900 Subject: [Ultramonkey-l7-users 558] Re: =?utf-8?b?VWx0cmFNb25rZXktTDfjgavjgaTjgYTjgaY=?= In-Reply-To: <000d01ceaf60$ca1a5e50$5e4f1af0$@jtrustsystem.co.jp> References: <000901ce7231$ebea2e00$c3be8a00$@jtrustsystem.co.jp> <51CAA655.5060309@nttcom.co.jp> <002c01ce724f$d12be220$7383a660$@jtrustsystem.co.jp> <51CB904C.9070400@nttcom.co.jp> <001a01ce72f7$59250510$0b6f0f30$@jtrustsystem.co.jp> <51CBE443.2020408@nttcom.co.jp> <000d01ceaf60$ca1a5e50$5e4f1af0$@jtrustsystem.co.jp> Message-ID: <523180D4.9040903@nttcom.co.jp> 吴さん 中野です。 こんにちは。 (2013/09/12 11:35), 吴 健羽 wrote: > 中野様 > > 大変お世話になっております。WUです。 > > UltraMonkey-L7について > 以下の設定内容が大丈夫でしょうか。 > お教え願います。 > > 1、l7vs.cfのsession_thread_pool_size=100 > > 2、l7directord.cfのmaxconn=100と500 >  以下のファイルの『●』を付けたところでmaxconnが表示されます。 >  LBの実IPは10.180.160.205です。 >  virtualサーバは二台(10.180.160.206と10.180.160.207)です。 >  Sorryサーバは(10.180.160.204)です。 > > 質問:maxconn=100と500を設定し、問題がありませんか。 >    もし、問題があると、100に統一する必要がありますか。 500のほうは設定しても意味がないので、100に統一するか、 もしくはsession_thread_pool_sizeを500にするのがいいと思います。 maxconnは同時接続数が設定値を超えるとsorry serverに転送する設定です。 同時接続数の最大値は、session_thread_pool_sizeによって決まります。 session_thread_pool_sizeが100の場合は、100以上の接続を受け付けないので、 maxconn=500としても、500の接続が来る前に繋がらなくなります。 maxconnは100に統一して、session_thread_pool_sizeを130くらいなど、 若干maxconnより多めにしておくと良いと思います。 あと、maxconnとは別件ですが、virtual行に同じIP:Portにしてもエラーには ならないですが、想定していない設定ファイルの書き方なので、 同じIP:Portのvirtual serviceを複数書かないほうがいいかと思います。 > お忙しいところで、お教え願います。 > > ==================== > virtual = 10.180.160.206:80 > real = 10.180.160.150:80 masq 1 > real = 10.180.160.151:80 masq 1 > module = ip --forwarded-for --reschedule --statistic 1 > scheduler = rr > sorryserver = 10.180.160.204:80 > maxconn = 100 > #qosup = 100M > #qosdown = 100M > checktype = negotiate > service = http > request = "index.html" > receive = "html" > quiescent = no > checkcount = 2 > accesslog = yes > accesslogfile = /var/log/l7vs/l7vsd_conn_tkf_80.log > accesslog_rotate_type = date > accesslog_rotate_max_backup_index = 10 > accesslog_rotate_max_filesize = 100M > accesslog_rotate_rotation_timing = date > accesslog_rotate_rotation_timing_value = "23:59" > virtual = 10.180.160.206:443 > real = 10.180.160.150:443 masq 1 > real = 10.180.160.151:443 masq 1 > module = ip --reschedule > scheduler = rr > #sorryserver = 192.168.0.53:80 > checktype = negotiate > service = https > request = "index.html" > receive = "html" > quiescent = no > checkcount = 2 > accesslog = yes > accesslogfile = /var/log/l7vs/l7vsd_conn_tkf_443.log > accesslog_rotate_type = date > accesslog_rotate_max_backup_index = 10 > # - A sample virtual section with a sorry server. > # - checkcount and quiescent settings are override the global settings. > virtual = 10.180.160.206:80 > real = 10.180.160.150:80 masq 1 > real = 10.180.160.151:80 masq 1 > module = ip --forwarded-for --reschedule --statistic 1 > scheduler = rr > sorryserver = 10.180.160.204:80 > maxconn = 100 ● > #qosup = 100M > #qosdown = 100M > checktype = negotiate > service = http > request = "index.html" > receive = "html" > quiescent = no > checkcount = 2 > accesslog = yes > accesslogfile = /var/log/l7vs/l7vsd_conn_tkf_80.log > accesslog_rotate_type = date > accesslog_rotate_max_backup_index = 10 > accesslog_rotate_max_filesize = 100M > accesslog_rotate_rotation_timing = date > accesslog_rotate_rotation_timing_value = "23:59" > virtual = 10.180.160.206:443 > real = 10.180.160.150:443 masq 1 > real = 10.180.160.151:443 masq 1 > module = ip --reschedule > scheduler = rr > #sorryserver = 192.168.0.53:80 > checktype = negotiate > service = https > request = "index.html" > receive = "html" > quiescent = no > checkcount = 2 > accesslog = yes > accesslogfile = /var/log/l7vs/l7vsd_conn_tkf_443.log > accesslog_rotate_type = date > accesslog_rotate_max_backup_index = 10 > accesslog_rotate_max_filesize = 100M > accesslog_rotate_rotation_timing = date > accesslog_rotate_rotation_timing_value = "23:59" > accesslog = yes > accesslogfile = /var/log/l7vs/l7vsd_conn_tkf_80.log > accesslog_rotate_type = date > accesslog_rotate_max_backup_index = 10 > accesslog_rotate_max_filesize = 100M > accesslog_rotate_rotation_timing = date > accesslog_rotate_rotation_timing_value = "23:59" > virtual = 10.180.160.206:443 > real = 10.180.160.150:443 masq 1 > real = 10.180.160.151:443 masq 1 > module = ip --reschedule > accesslog_rotate_max_backup_index = 10 > accesslog_rotate_max_filesize = 100M > accesslog_rotate_rotation_timing = date > accesslog_rotate_rotation_timing_value = "23:59" > virtual = 10.180.160.206:443 > real = 10.180.160.150:443 masq 1 > real = 10.180.160.151:443 masq 1 > module = ip --reschedule > scheduler = rr > #sorryserver = 192.168.0.53:80 > checktype = negotiate > service = https > request = "index.html" > receive = "html" > quiescent = no > checkcount = 2 > accesslog = yes > accesslogfile = /var/log/l7vs/l7vsd_conn_tkf_443.log > accesslog_rotate_type = date > accesslog_rotate_max_backup_index = 10 > accesslog_rotate_max_filesize = 100M > accesslog_rotate_rotation_timing = date > accesslog_rotate_rotation_timing_value = "23:59" > virtual = 10.180.160.207:80 > real = 10.180.160.152:80 masq 1 > real = 10.180.160.153:80 masq 1 > module = ip --forwarded-for --reschedule --statistic 1 > scheduler = rr > sorryserver = 10.180.160.204:80 > maxconn = 500 ● > #qosup = 100M > #qosdown = 100M > checktype = negotiate > service = http > request = "index.html" > receive = "html" > quiescent = no > checkcount = 2 > accesslog = yes > accesslogfile = /var/log/l7vs/l7vsd_conn_nh_80.log > accesslog_rotate_type = date > accesslog_rotate_max_backup_index = 10 > accesslog_rotate_max_filesize = 100M > checkinterval = 10 > retryinterval = 5 > checkcount = 3 > > ============================= > > [LB01 conf]$ cat /etc/l7vs/l7vs.cf > # > # UltraMonkey - L7 configuration file > # Copyright (C) 2008-2009 NTT COMWARE Corporation. > # License: GNU General Public License (GPL) > # > # > # > # This program is free software; you can redistribute it and/or > # modify it under the terms of the GNU General Public License as > # published by the Free Software Foundation; either version 2 of the > # License, or (at your option) any later version. > # > # This program is distributed in the hope that it will be useful, but > # WITHOUT ANY WARRANTY; without even the implied warranty of > # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU > # General Public License for more details. > # > # You should have received a copy of the GNU General Public License > # along with this program; if not, write to the Free Software > # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA > # 02110-1301 USA > # > # > # Rivision History. > # 3.0.0 MultiThread version release. > # 1.2.0 First verion release.(version was put together l7vsd) > # - 2008/03/26 Norihisa Nakai. > > > # > # l7vs log setting > # > [logger] > # l7vsd logfile base name > l7vsd_log_filename = "/var/log/l7vs/l7vsd.log" > # l7vsd log rotate pattern > l7vsd_rotation = "size" > # l7vsd rotate max backup number > l7vsd_max_backup_index = "10" > # l7vsd rotate file size > l7vsd_max_filesize = "10M" > > # l7vsd access log rotate pattern > l7vsd_accesslog_rotate_type = "size" > # l7vsd access rotate max backup number > l7vsd_accesslog_rotate_max_backup_index = "10" > # l7vsd access rotate file size > l7vsd_accesslog_rotate_max_filesize = "10M" > > # l7vsd log categories level > l7vsd_network = "warn" > l7vsd_network_qos = "warn" > l7vsd_network_bandwidth = "warn" > l7vsd_network_num_connection = "warn" > l7vsd_network_access = "warn" > l7vsd_mainthread = "warn" > l7vsd_virtualservice = "warn" > l7vsd_virtualservice_thread = "warn" > l7vsd_session = "warn" > l7vsd_session_thread = "warn" > l7vsd_realserver = "warn" > l7vsd_sorryserver = "warn" > l7vsd_module = "warn" > l7vsd_replication = "warn" > l7vsd_replication_sendthread = "warn" > l7vsd_parameter = "warn" > l7vsd_logger = "warn" > l7vsd_command = "warn" > l7vsd_start_stop = "warn" > l7vsd_system = "warn" > l7vsd_system_memory = "warn" > l7vsd_system_endpoint = "warn" > l7vsd_system_signal = "warn" > l7vsd_system_environment = "warn" > l7vsd_snmpagent = "warn" > > l7vsd_protocol = "warn" > l7vsd_schedule = "warn" > > # l7vsadm log file base name > l7vsadm_log_filename = "/var/log/l7vs/l7vsadm.log" > # l7vsadm rotate pattern > l7vsadm_rotation = "date" > # l7vsadm rotate max backup number > l7vsadm_max_backup_index = "10" > # l7vsadm rotate timing ( every month rotate ) > l7vsadm_rotation_timing = "month" > # l7vsadm rotate timing ( day and time ) > l7vsadm_rotation_timing_value = "1 0:01" > > # l7vsadm log categories level > l7vsadm_parse = "warn" > l7vsadm_operate = "warn" > l7vsadm_config_result = "warn" > l7vsadm_common = "warn" > l7vsadm_logger = "warn" > l7vsadm_parameter = "warn" > l7vsadm_module = "warn" > > l7vsadm_protocol = "warn" > l7vsadm_schedule = "warn" > > # > # l7vsadm setting > # > [l7vsadm] > cmd_interval = 1 > cmd_count = 10 > > # > # l7vsd setting > # > [l7vsd] > maxfileno = 65535 > > # > # virtualservice setting > # > [virtualservice] > session_thread_pool_size = 100 ● > throughput_calc_interval = 500 > > # > # l7vsd replication setting > # > [replication] > #ip_addr = "192.168.0.254" > #service_name = "40000" > #recv_ip_addr = "192.168.0.253" > #interval = 1000 > #compulsorily_interval = 40 > > #cmponent_id_00 = "virtualservice" > #cmponent_size_00 = 64 > #cmponent_id_01 = "chash" > #cmponent_size_01 = 1 > #cmponent_id_02 = "sslid" > #cmponent_size_02 = 222 > > # > # snmpagent settings > # > [snmpagent] > enable = "false" > cache_update_interval = 1 > logtrap = "false" > logtrap_level = "warn" > qos_up_alert_on = 85 > qos_up_alert_off = 50 > qos_down_alert_on = 85 > qos_down_alert_off = 50 > sessionpool_alert_on = 5 > sessionpool_alert_off = 8 > trap_queue_polling_interval = 100000000 > trap_queue_max_size = 1000 > > > > -- 中野 宏朗 (NAKANO Hiroaki) NTTコムウェア 品質生産性技術本部 技術SE部 基盤ソフトSE・OSS部門 OSS・DB技術担当 Tel: 043-211-2452 (Ext: 特番+26-8341), Fax: 043-211-5086 Zip/Address: 261-0023 千葉県千葉市美浜区中瀬1-6 NTT幕張ビル21F-En