a2e3d2fcea
bring up chassisdb service on sonic switch according to the design in
Distributed Forwarding in VoQ Arch HLD
Signed-off-by: Honggang Xu <hxu@arista.com>
**- Why I did it**
To bring up new ChassisDB service in sonic as designed in ['Distributed forwarding in a VOQ architecture HLD' ](90c1289eaf/doc/chassis/architecture.md
).
**- How I did it**
Implement the section 2.3.1 Global DB Organization of the VOQ architecture HLD.
**- How to verify it**
ChassisDB service won't start without chassisdb.conf file on the existing platforms.
ChassisDB service is accessible with global.conf file in the distributed arichitecture.
Signed-off-by: Honggang Xu <hxu@arista.com>
90 lines
2.2 KiB
Django/Jinja
90 lines
2.2 KiB
Django/Jinja
{
|
|
"INSTANCES": {
|
|
"redis":{
|
|
"hostname" : "{{HOST_IP}}",
|
|
"port" : 6379,
|
|
"unix_socket_path" : "/var/run/redis{{NAMESPACE_ID}}/redis.sock",
|
|
"persistence_for_warm_boot" : "yes"
|
|
},
|
|
"redis_chassis":{
|
|
"hostname" : "redis_chassis.server",
|
|
"port": 6380,
|
|
"unix_socket_path": "/var/run/redis-chassis/redis_chassis.sock",
|
|
"persistence_for_warm_boot" : "yes"
|
|
}
|
|
},
|
|
"DATABASES" : {
|
|
"APPL_DB" : {
|
|
"id" : 0,
|
|
"separator": ":",
|
|
"instance" : "redis"
|
|
},
|
|
"ASIC_DB" : {
|
|
"id" : 1,
|
|
"separator": ":",
|
|
"instance" : "redis"
|
|
},
|
|
"COUNTERS_DB" : {
|
|
"id" : 2,
|
|
"separator": ":",
|
|
"instance" : "redis"
|
|
},
|
|
"LOGLEVEL_DB" : {
|
|
"id" : 3,
|
|
"separator": ":",
|
|
"instance" : "redis"
|
|
},
|
|
"CONFIG_DB" : {
|
|
"id" : 4,
|
|
"separator": "|",
|
|
"instance" : "redis"
|
|
},
|
|
"PFC_WD_DB" : {
|
|
"id" : 5,
|
|
"separator": ":",
|
|
"instance" : "redis"
|
|
},
|
|
"FLEX_COUNTER_DB" : {
|
|
"id" : 5,
|
|
"separator": ":",
|
|
"instance" : "redis"
|
|
},
|
|
"STATE_DB" : {
|
|
"id" : 6,
|
|
"separator": "|",
|
|
"instance" : "redis"
|
|
},
|
|
"SNMP_OVERLAY_DB" : {
|
|
"id" : 7,
|
|
"separator": "|",
|
|
"instance" : "redis"
|
|
},
|
|
"RESTAPI_DB" : {
|
|
"id" : 8,
|
|
"separator": "|",
|
|
"instance" : "redis"
|
|
},
|
|
"GB_ASIC_DB" : {
|
|
"id" : 9,
|
|
"separator": "|",
|
|
"instance" : "redis"
|
|
},
|
|
"GB_COUNTERS_DB" : {
|
|
"id" : 10,
|
|
"separator": "|",
|
|
"instance" : "redis"
|
|
},
|
|
"GB_FLEX_COUNTER_DB" : {
|
|
"id" : 11,
|
|
"separator": "|",
|
|
"instance" : "redis"
|
|
},
|
|
"CHASSIS_APP_DB" : {
|
|
"id" : 12,
|
|
"separator": "|",
|
|
"instance" : "redis_chassis"
|
|
}
|
|
},
|
|
"VERSION" : "1.0"
|
|
}
|