コンテンツにスキップ

モニター

A monitor issues health monitor requests at regular intervals to evaluate the health of each endpoint within a pool.

When a pool becomes unhealthy, your load balancer takes that pool out of the endpoint rotation.

    flowchart RL
      accTitle: Load balancing monitor flow
      accDescr: Monitors issue health monitor requests, which validate the current status of servers within each pool.
      Monitor -- Health Monitor ----> Endpoint2
      Endpoint2 -- Response ----> Monitor
      subgraph Pool
      Endpoint1((Endpoint 1))
      Endpoint2((Endpoint 2))
      end

ヘルスモニターのリクエストでエンドポイントのステータスが変更された場合、それはロードバランシングのイベントログにイベントとして記録されます。


プロパティ

モニターのプロパティの最新リストについては、APIドキュメントのモニターのプロパティを参照してください。


モニターの作成

ステップバイステップのガイダンスについては、モニターの作成を参照してください。


ヘルスモニターの地域

モニターをプールにアタッチするとき、報告の精度を高めるために複数の地域を選択できます。

For each option selected in a pool’s Health Monitor Regions, Cloudflare sends health monitor requests from three separate data centers in that region.

Health monitor requests come from three data centers within each selected region.

If the majority of data centers for that region pass the health monitor requests, that region is considered healthy. If the majority of regions is healthy, then the endpoint itself will be considered healthy.

設定

All Data Centers (Enterprise only)

Health monitor probes are sent from every single data center in Cloudflare’s network to the endpoints within the associated pool. This allows probes to hit each endpoint during intervals set by the customer.

All Regions

Three health monitor probes per region are sent to each endpoint in the associated pool. There are a total of 13 regions, resulting in 39 probes.

Regional

Three health monitor probes are sent from each specified region within the pool configuration.


ホストヘッダーの優先順位

ヘルスモニターのリクエストで使用されるホストヘッダーは、モニター自体で設定するか、プール内のエンドポイントで設定することができます。

モニターとエンドポイントの両方でホストヘッダーが指定されている場合、エンドポイントで設定されたホストヘッダーがモニターで設定されたホストヘッダーに優先します。

ホストヘッダーが指定されていない場合、Cloudflareはエンドポイントで設定されたエンドポイントアドレスをヘルスモニターのリクエストのホストヘッダーとして使用します。

詳細については、HTTPホストヘッダーの上書きを参照してください。


APIコマンド

Cloudflare APIは、モニターに対して以下のコマンドをサポートしています。例はユーザーレベルのエンドポイントに対して示されていますが、アカウントレベルのエンドポイントにも適用されます。

コマンドメソッドエンドポイント
モニターの作成POSTaccounts/:account_id/load_balancers/monitors
モニターの削除DELETEaccounts/:account_id/load_balancers/monitors/:id
モニターの一覧GETaccounts/:account_id/load_balancers/monitors
モニターの詳細GETaccounts/:account_id/load_balancers/monitors/:id
特定のプロパティを上書きPATCHaccounts/:account_id/load_balancers/monitors/:id
既存のモニターを上書きPUTaccounts/:account_id/load_balancers/monitors/:id
モニターのプレビューPOSTaccounts/:account_id/load_balancers/monitors/:id/preview

サポートされているプロトコル

Cloudflareのロードバランシングは、HTTP、HTTPS、TCP、UDP、ICMP、ICMP ping、およびSMTPの公開モニタリングをサポートしています。

ロードバランシングは、HTTP、HTTPS、およびTCPのプライベートモニタリングもサポートしています。