From 4ab6332176b7094037a8ff252acbe6103f94a4d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Wed, 1 Dec 2021 19:05:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- p.php | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/p.php b/p.php index 50412261..7114ccc1 100644 --- a/p.php +++ b/p.php @@ -49,3 +49,42 @@ // after($process); //}); + +var_dump(json_encode([ + "Datacenter" => "dc1", + "Node" => "iz8vbi3edjyskl7kpuwudqz", + "SkipNodeUpdate" => false, + "Service" => [ + "ID" => "redis1", + "Service" => "FriendRpcService", + "Address" => "172.26.221.211", + "TaggedAddresses" => [ + "lan" => [ + "address" => "127.0.0.1", + "port" => 9627 + ], + "wan" => [ + "address" => "172.26.221.211", + "port" => 9627 + ] + ], + "Meta" => [ + "redis_version" => "4.0" + ], + "Port" => 9627 + ], + "Check" => [ + "Node" => "iz8vbi3edjyskl7kpuwudqz", + "CheckId" => "service:redis1", + "Name" => "Redis health check", + "Notes" => "Script based health check", + "Status" => "passing", + "ServiceID" => "redis1", + "Definition" => [ + "Http" => "http://172.26.221.211:9627", + "Interval" => "5s", + "Timeout" => "1s", + "DeregisterCriticalServiceAfter" => "30s" + ], + ], +]));