Skip to content

Naming Configurationn

Introduction

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

Configuration

Config Item Description
Version String
Version of config file
Config Struct
Mapping between service name and instances
Config{k} String
Service name
Config{v} Struct
A list of instances
Config{v}[].Host String
Instance address
Config{v}[].Port Integer
Instance port
Config{v}[].Weight Integer
Instance weight

Example

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