設定


l7vs.cf

暫定。LVSの設定。
サンプルそのまま。

[logger]
## l7vsd
l7vsd_log_filename = "/var/log/l7vs/l7vsd.log"
l7vsd_rotation = "size"
l7vsd_max_backup_index = "10"
l7vsd_max_filesize = "10M"
l7vsd_accesslog_rotate_type = "size"
l7vsd_accesslog_rotate_max_backup_index = "10"
l7vsd_accesslog_rotate_max_filesize = "10M"

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
l7vsadm_log_filename = "/var/log/l7vs/l7vsadm.log"
l7vsadm_rotation = "date"
l7vsadm_max_backup_index = "10"
l7vsadm_rotation_timing = "month"
l7vsadm_rotation_timing_value = "1 0:01"

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]
# 二重起動チェック間隔
cmd_interval = 1
# 二重起動チェック回数
cmd_count = 10

[l7vsd]
maxfileno = 65535

[virtualservice]
session_thread_pool_size    = 32
throughput_calc_interval    = 500

[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]
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

l7directord.cf

暫定。/etc/ha.d/conf/l7directord.cf.sampleがテンプレ。
旧Ver.やHeartbeat意識で正直ディレクトリ構成がわかりづらい。

# - Monitor Settings
## ICMP,Port生死閾値(秒)
checktimeout     = 5
## サービス生死閾値(秒)
negotiatetimeout = 5
## 監視間隔(秒)
checkinterval    = 10
## 失敗時リトライ間隔(秒)
retryinterval    = 5
## 失敗回数閾値
checkcount       = 3
## エラーサービス切り離しまで、デフォで最大10+(5+5)x3=40秒

# - Logging
## ファイル指定
logfile          = /var/log/l7vs/l7directord.log
## ファシリティ指定
#logfile          = local0
## アンコメントで標準出力にログをはく
#supervised

# - Real Server Operation
## weightを0にして切り離す。noは削除して切り離す。
quiescent        = yes
## すべての実鯖が切り離されたときに追加される緊急実鯖。
#fallback         = vvv.vvv.vvv.vvv:80

# - Monitor Configuration File
## cfファイル監視間隔
configinterval   = 10
## cfファイルの自動再読込
autoreload       = no
## cfファイルが変更されたときに実行するファイル。
## autoreloadとは無関係に動作する。
#callback         = /opt/config_change.sh

# = VIRTUAL DIRECTIVES
virtual  = xxx.xxx.xxx.xxx:80
        real = yyy.yyy.yyy.yy1:80 masq 1
        real = yyy.yyy.yyy.yy2:80 masq 1
        module      = sessionless
        scheduler   = rr
        ## Sorry状態(実鯖落ちたなどだけでなく過負荷による一時的接続不可(503)なども)のときに
        ## 接続する鯖
        #sorryserver = zzz.zzz.zzz.zzz:80
        #maxconn     = 1000
        #qosup       = 100M
        #qosdown     = 100M
        checktype   = negotiate
        service     = http
        request     = "index.html"
        receive     = "html"
        quiescent   = no
        checkcount  = 2
        #realdowncallback      = /opt/down.sh
        #realrecovercallback   = /opt/recover.sh
        #customcheck           = ping -c1 -w1 _IP_
        #sslconfigfile         = /etc/l7vs/sslproxy/sslproxy.target.cf
        ## TCPソケットのオプション
        ## 指定文字:deferaccept nodelay cork quickackon quickackoff
        #socketoption          = deferaccept,nodelay,quickackoff
        #accesslog             = yes
        #accesslogfile         = /var/log/l7vs/l7vsd_conn.log
        #accesslog_rotate_type = datesize
        #accesslog_rotate_max_backup_index = 2
        #accesslog_rotate_max_filesize     = 100M
        #accesslog_rotate_rotation_timing  = month
        #accesslog_rotate_rotation_timing_value = "1 23:59"

トップ   編集 凍結解除 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2011-08-02 (火) 23:04:37 (2456d)