name_conf.data records the mapping between service name and service instances.
Config Item | Type | Description |
---|---|---|
Version | String | Version of config file |
Config | Struct | Mapping between name and instances. Key: service name. Value: a list of instances. Instance: - Host: instance address - Port: instance port - Weight: instance weight |
{
"Version": "20190101000000",
"Config": {
"example.redis.cluster": [
{
"Host": "192.168.1.1",
"Port": 6439,
"Weight": 10
}
]
}
}