#amazon(4873110653) #amazon(4797368535)
 

#adsense(728x90)

 

概要[edit]

コンフィグ構造[edit]

bigip-config.png

仮想サーバ[edit]

設定[edit]

[root@bigip:Active] config # bigpipe virtual server-name '{
   destination ip-addr:port
   pool pool-name
   ip protocol tcp
   profile profile-name
   persist persist-name
   rule rule-name
}'

確認[edit]

プールとバランシング方式[edit]

概要[edit]

設定[edit]

プールの作成[edit]

[root@bigip:Active] / # bigpipe pool pool-name {
      lb method method
      persist_mode mode
      min active members 2
      member ip-addr:port [ratio ratio] [priority priority]
      member ip-addr:port [ratio ratio] [priority priority]
}
[root@bigip:Active] / # bigpipe pool pool-name {          \
      lb method member ratio                              \
      min active members 2
      member 172.16.20.1:80 ratio 4 priority 2
      member 172.16.20.2:80 ratio 2 priority 2
      member 172.16.20.3:80 }

プール メンバーの追加[edit]

[root@bigip:Active] / # bigpipe pool pool-name add { ip-addr:port [option] }

プール メンバーの削除[edit]

[root@bigip:Active] / # bigpipe pool pool-name delete { ip-addr:port [option] }

比率の変更[edit]

[root@bigip:Active] / # bigpipe ratio ip-addr [ip-addr...] ratio

操作[edit]

プール メンバーの切り離し[edit]

プール メンバーの戻し[edit]

[root@bigip:Active] / # bigpipe pool pool-name member ip-addr:port up session enable

確認[edit]

設定情報を出力[edit]

[root@bigip:Active] / # bigpipe pool [pool-name] list
pool pool-name {
   monitor http
   member 192.160.0.32:80
   member 192.160.0.33:80
   member 192.160.0.34:80
}

モニタ[edit]

概要[edit]

アドレス チェック (L3)[edit]

サービス チェック (L4)[edit]

コンテンツ チェック (L7)[edit]

インタラクティブ チェック (L7+α)[edit]

設定[edit]

モニタの作成[edit]

[root@bigip:Active] / # bigpipe monitor monitor-name '{
        defaults from tepmlate-name
        [interval interval-time]
        [timeout timeout-time]
        [dest ip-addr:port]
        [send \"(GET|POST) path\"
        recv \"receive-text\"]
}'

ex) L7 レベルのチェック (HTTP のコンテンツ)

[root@bigip:Active] / # bigpipe monitor http_mon '{
        defaults from http
        interval 5
        timeout 16
        dest *:80
        send \"GET /\"
        recv \"Server\"
}'

ex) L3 レベルのチェック (Ping の応答)

[root@bigip:Active] / # bigpipe monitor icmp_mon '{
        defaults from icmp
        interval 15
        timeout 46
}'

モニタの関連付け[edit]

ex) プールへの関連付け

[root@bigip:Active] / # bigpipe pool http_pool '{
   monitor all http_mon
}'

ex) ノードへの関連付け

[root@bigip:Active] / # bigpipe pool https_pool '{
   member 172.16.20.1:443 monitor https_mon
}'

ex)

[root@bigip:Active] / # bigpipe node all '{
   monitor icmp_mon
'}

ノード[edit]

概要[edit]

設定[edit]

[root@bigip:Active] / # bigpipe node ip-addr {
   screen screen-name
}

操作[edit]

ノードの切り離し[edit]

ノードの戻し[edit]

[root@bigip:Active] / # bigpipe node screen-name up session enable

確認[edit]

ステータスの出力[edit]

[root@bigip:Active] / # bigpipe node screen-name show
NODE 192.168.0.32     UP   SESSIONS ENABLED
|        conns (cur, max, limit, tot) = (0, 100, 0, 46.95M)
|        (pkts,bits) in = (320.5M, 630.0G), out = (375.1M, 1.858T)
|        requests (total) = 46.95M

設定情報の出力[edit]

[root@bigip:Active] / # bigpipe node screen-name list
node 192.168.0.32 {
   screen web01
}
node 192.168.0.33 {
   screen web02
}
node 192.168.0.34 {
   screen web03
}

プロファイル[edit]

パーシステンス プロファイル[edit]

説明[edit]

設定[edit]

[root@bigip:Active] config # bigpipe profile persist src_addr_persist {
        defaults from source_addr
        mode source addr
        mask 255.255.255.255
        timeout 20
}
[root@bigip:Active] config # bigpipe virtual vs_http {
        persist src_addr_persist
}

サービス プロファイル (HTTP)[edit]

説明[edit]

設定[edit]

profile http name {
   defaults from http
   fallback "http://sorry-url"
}

クライアント SSL プロファイル[edit]

説明[edit]

設定[edit]

profile clientssl profile-name {
   defaults from clientssl
   key "key-filename"
   cert "cert-filename"
   ca file "ca-filename"
}

iRule[edit]

説明[edit]

設定[edit]

ex) URI に txt を含むものは、rule_pool に、それ以外は http_pool にバランシングする

  1. ルールの作成
    [root@bigip:Active] config # bigpipe rule text_rule {
            when HTTP_REQUEST {
                    if {[HTTP::uri] contains \"txt\"} {
                            pool rule_pool
                    }
                    else {
                            pool http_pool
                    }
            }
    }
    
  2. ルールの関連付け
    [root@bigip:Active] config # bigpipe virtual vs_text {
            profile http
            rule text_rule
    }
    

その他[edit]

ステータス[edit]

[root@bigip:Active] config # bigtop
                     |  bits  since       |  bits  in prior    |  current
                     |  MMM DD HH:MM:SS   |  5 seconds         |  time
BIG-IP      ACTIVE   |---In----Out---Conn-|---In----Out---Conn-|  HH:MM:SS
bigip                 372.5G 1.356T 125.6M  94424  64568     19

VIRTUAL ip:port      |---In----Out---Conn-|---In----Out---Conn-|-Nodes Up--
10.0.0.32:http        1.575G 47.59G  23307  21072  13616      1      3
10.0.0.32:https       7.325G 21.14G 578740      0      0      0      3

NODE ip:port         |---In----Out---Conn-|---In----Out---Conn-|--State----
192.168.0.32:http     1.575G 47.59G  23244  21072  13616     20 UP
192.168.0.33:http     7.374G 21.63G 580135      0      0      0 DOWN
192.168.0.34:http     280.7M 11.89G    741  21129  12098     23 UP
192.168.0.34:https    3.195G 7.839G  63973      0      0      0 UNCHECKED
192.168.0.34:https    311.0M 1.296G  25066      0      0      0 UNCHECKED
192.168.0.34:https    390.8M 752.1M  23582      0      0      0 UNCHECKED
 

#adsense(728x90)

 

トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2020-07-08 (水) 18:10:14