Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 832 Bytes

name_conf.data.md

File metadata and controls

27 lines (22 loc) · 832 Bytes

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

{
    "Version": "20190101000000",
    "Config": {
        "example.redis.cluster": [
            {
                "Host": "192.168.1.1",
                "Port": 6439,
                "Weight": 10
            }
        ]
    }
}