Introduction

name_conf.data records the mapping between service name and service instances.

Configuration

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

Example

  1. {
  2. "Version": "20190101000000",
  3. "Config": {
  4. "example.redis.cluster": [
  5. {
  6. "Host": "192.168.1.1",
  7. "Port": 6439,
  8. "Weight": 10
  9. }
  10. ]
  11. }
  12. }