Last active
May 12, 2022 18:05
-
-
Save riddhi89/d77cb6ff8c7b56559e17135d851f597e to your computer and use it in GitHub Desktop.
merge-central-config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Kind": "proxy-defaults", | |
"Name": "global", | |
"Mode": "direct", | |
"Config": { | |
"local_connect_timeout_ms": 1000, | |
"handshake_timeout_ms": 10000 | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Kind": "service-defaults", | |
"Name": "redis", | |
"Mode": "transparent", | |
"UpstreamConfig": { | |
"Defaults": { | |
"MeshGateway": { | |
"Mode": "local" | |
}, | |
"Limits": { | |
"MaxConnections": 512, | |
"MaxPendingRequests": 512, | |
"MaxConcurrentRequests": 512 | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Datacenter": "dc1", | |
"Node": "synthetic-node1", | |
"Address": "127.0.0.1", | |
"TaggedAddresses": { | |
"lan": "127.0.0.1", | |
"wan": "10.0.10.10" | |
}, | |
"NodeMeta": { | |
"somekey": "somevalue" | |
}, | |
"Service": { | |
"ID": "redis1", | |
"Service": "redis", | |
"Tags": [ | |
"primary", | |
"v1" | |
], | |
"Address": "127.0.0.1", | |
"TaggedAddresses": { | |
"lan": { | |
"address": "127.0.0.1", | |
"port": 8000 | |
}, | |
"wan": { | |
"address": "198.18.0.1", | |
"port": 80 | |
} | |
}, | |
"Meta": { | |
"redis_version": "4.0" | |
}, | |
"Port": 8000 | |
}, | |
"Check": { | |
"CheckID": "health-check1", | |
"Definition": { | |
"ScriptArgs": [ | |
"/usr/local/bin/check_redis.py" | |
], | |
"Interval": "10s" | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -s http://localhost:8500/v1/catalog/service/redis | |
[ | |
{ | |
"ID": "", | |
"Node": "synthetic-node1", | |
"Address": "127.0.0.1", | |
"Datacenter": "dc1", | |
"TaggedAddresses": { | |
"lan": "127.0.0.1", | |
"wan": "10.0.10.10" | |
}, | |
"NodeMeta": { | |
"somekey": "somevalue" | |
}, | |
"ServiceKind": "", | |
"ServiceID": "redis1", | |
"ServiceName": "redis", | |
"ServiceTags": [ | |
"primary", | |
"v1" | |
], | |
"ServiceAddress": "127.0.0.1", | |
"ServiceTaggedAddresses": { | |
"lan": { | |
"Address": "127.0.0.1", | |
"Port": 8000 | |
}, | |
"wan": { | |
"Address": "198.18.0.1", | |
"Port": 80 | |
} | |
}, | |
"ServiceWeights": { | |
"Passing": 1, | |
"Warning": 1 | |
}, | |
"ServiceMeta": { | |
"redis_version": "4.0" | |
}, | |
"ServicePort": 8000, | |
"ServiceSocketPath": "", | |
"ServiceEnableTagOverride": false, | |
"ServiceProxy": { | |
"Mode": "", | |
"MeshGateway": {}, | |
"Expose": {} | |
}, | |
"ServiceConnect": {}, | |
"CreateIndex": 18, | |
"ModifyIndex": 18 | |
} | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -s http://localhost:8500/v1/catalog/service/redis\?\merge-cent | |
ral-config | |
[ | |
{ | |
"ID": "", | |
"Node": "synthetic-node1", | |
"Address": "", | |
"Datacenter": "", | |
"TaggedAddresses": null, | |
"NodeMeta": null, | |
"ServiceKind": "", | |
"ServiceID": "redis1", | |
"ServiceName": "redis", | |
"ServiceTags": [ | |
"primary", | |
"v1" | |
], | |
"ServiceAddress": "127.0.0.1", | |
"ServiceTaggedAddresses": { | |
"lan": { | |
"Address": "127.0.0.1", | |
"Port": 8000 | |
}, | |
"wan": { | |
"Address": "198.18.0.1", | |
"Port": 80 | |
} | |
}, | |
"ServiceWeights": { | |
"Passing": 1, | |
"Warning": 1 | |
}, | |
"ServiceMeta": { | |
"redis_version": "4.0" | |
}, | |
"ServicePort": 8000, | |
"ServiceSocketPath": "", | |
"ServiceEnableTagOverride": false, | |
"ServiceProxy": { | |
"Mode": "transparent", | |
"Config": { | |
"handshake_timeout_ms": 10000, | |
"local_connect_timeout_ms": 1000 | |
}, | |
"Upstreams": [ | |
{ | |
"DestinationType": "", | |
"DestinationNamespace": "default", | |
"DestinationPartition": "default", | |
"DestinationName": "*", | |
"Datacenter": "", | |
"Config": { | |
"limits": { | |
"MaxConnections": 512, | |
"MaxPendingRequests": 512, | |
"MaxConcurrentRequests": 512 | |
}, | |
"mesh_gateway": { | |
"Mode": "local" | |
} | |
}, | |
"MeshGateway": { | |
"Mode": "local" | |
}, | |
"CentrallyConfigured": true | |
} | |
], | |
"MeshGateway": {}, | |
"Expose": {} | |
}, | |
"ServiceConnect": {}, | |
"CreateIndex": 18, | |
"ModifyIndex": 18 | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment