8.5.4. Cluster Definition Configuration Examples

This is a sample standalone cluster configuration from config.php:


    $jsonConfig = <<<EOJ
    {
        "clusters": {
            "north": {
                "host":"localhost",
                "port":"8093"
            }
        },
        "menus": {
            "tools": {
    "Add your links here":"http://docs.continuent.com/tungsten-dashboard-1.0/tungsten-dashboard-configure-dashboard.html"
            }

        },
        "settings": {
            "dashboardMaintenanceScreen":0,
            "autoRefreshList": [5,10,30,60,120,300]
        }
    }
    EOJ;
    

This is a sample composite cluster configuration from config.php (either active/passive or active/active):


    $jsonConfig = <<<EOJ
    {
        "clusters": {
            "global": {
                "host":"localhost",
                "port":8091,
                "children": [ "west","east" ]
            },
            "east": {
                "host":"localhost",
                "port":"8092",
                "memberOf":"global"
            },
            "west": {
                "host":"localhost",
                "port":"8093",
                "memberOf":"global"
            }
        },
        "menus": {
            "tools": {
    "Add your links here":"http://docs.continuent.com/tungsten-dashboard-1.0/tungsten-dashboard-configure-dashboard.html"
            }

        },
        "settings": {
            "dashboardMaintenanceScreen":0,
            "autoRefreshList": [5,10,30,60,120,300]
        }
    }
    EOJ;