Reference Source

Design - Configuration for Nodes

Description

Topology nodes description.

Format

Provide a list of distributed nodes with:

Example

{
    "nodes":{
        "NodeA":{
            "host":"localhost",
            "is_master":true,
            "servers":{
                "NodeALocal8080":{
                    "type":"express",
                    "port":8080,
                    "protocole":"http",
                    "middlewares":[],
                    "use_socketio":true,

                    "security": {
                        "authentication": {
                            "enabled":false,
                            "plugins":[]
                        }
                    }
                },
                "NodeALocalLogs":{
                    "type":"logs",
                    "port":"N/A",
                    "protocole":"bus",
                    "middlewares":[],
                    "use_socketio":false,

                    "security": {
                        "authentication": {
                            "enabled":false,
                            "plugins":[]
                        }
                    }
                }
            }
        },

        "NodeB":{
            "host":"localhost",
            "is_master":false,
            "servers":{
                "NodeBLocal7080":{
                    "type":"express",
                    "port":7080,
                    "protocole":"http",
                    "middlewares":[],
                    "use_socketio":true,

                    "security": {
                        "authentication": {
                            "enabled":false,
                            "plugins":[]
                        }
                    }
                }
            }
        },

        "NodeC":{
            "host":"localhost",
            "is_master":false,
            "servers":{
                "NodeCLocal6080":{
                    "type":"express",
                    "port":6080,
                    "protocole":"http",
                    "middlewares":[],
                    "use_socketio":true,

                    "security": {
                        "authentication": {
                            "enabled":false,
                            "plugins":[]
                        }
                    }
                }
            }
        }
    }
}