All Downloads are FREE. Search and download functionalities are using the official Maven repository.

.foundation.master-slave.1.3.1-2.source-code.configSchema.xml Maven / Gradle / Ivy

Go to download

This project is a multi data center supported master slave cluster manager library

The newest version!
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!--
  ~ Copyright 2016 Cisco Systems, Inc.
  ~
  ~  Licensed under the Apache License, Version 2.0 (the "License");
  ~  you may not use this file except in compliance with the License.
  ~  You may obtain a copy of the License at
  ~
  ~  http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~  Unless required by applicable law or agreed to in writing, software
  ~  distributed under the License is distributed on an "AS IS" BASIS,
  ~  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~  See the License for the specific language governing permissions and
  ~  limitations under the License.
  -->

<NamespaceDefinitions
        xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/foundation-runtime/configuration/master/ccp_schema/CCP_XML.xsd"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <NamespaceDefinition>
        <NamespaceIdentifier version="TBD" name="TBD"/>

        <ParameterType name="masterSlaveBase" type="STRUCTURE" description="base structure for master slave lib">
            <StructureDefinition>
                <StructureMemberDefinition name="masterSlave.leaseTime" type="INTEGER" unit="SECONDS" description="The mastership lease time in seconds.">
                    <DefaultValue>
                        <PrimitiveValue value="30"/>
                    </DefaultValue>
                </StructureMemberDefinition>
                <StructureMemberDefinition name="masterSlave.mastership.multiplicity" type="STRING" description="The mastership multuplicity policy. Values are either single or multi. Multi will act as multu master within an active DC and active version.">
                    <DefaultValue>
                        <PrimitiveValue value="single"/>
                    </DefaultValue>
                    <Range>
                        <StringEnum value="single"/>
                        <StringEnum value="multi"/>
                    </Range>
                </StructureMemberDefinition>
                <StructureMemberDefinition name="masterSlave.mastership.singleAcrossMDC" type="BOOLEAN" description="Setting true means we maintain one master within an active DC.">
                    <DefaultValue>
                        <PrimitiveValue value="true"/>
                    </DefaultValue>
                </StructureMemberDefinition>
                <StructureMemberDefinition name="masterSlave.mastership.singleAcrossVersion" type="BOOLEAN" description="Setting true means we maintain one master within an active version as set in the DB.">
                    <DefaultValue>
                        <PrimitiveValue value="true"/>
                    </DefaultValue>
                </StructureMemberDefinition>
            </StructureDefinition>
        </ParameterType>

        <Parameter name="masterSlave.impl" type="STRING" description="the implementation of mastership election">
            <DefaultValue>
                <PrimitiveValue value="consul-openstack"/>
            </DefaultValue>
        </Parameter>

        <Parameter name="consulClient" description="http client for consul api" type="STRUCTURE" base="service.http.client.base">
            <StructureDefinition>
                <StructureMemberDefinition name="numberOfInitAttempts" type="INTEGER">
                    <DefaultValue>
                        <PrimitiveValue value="3" />
                    </DefaultValue>
                </StructureMemberDefinition>
            </StructureDefinition>
            <DefaultValue>
                <StructureValue>
                    <StructureMemberValue name="http.waitingTime" value="0"/>
                    <StructureMemberValue name="http.exposeStatisticsToMonitor" value="false"/>
                    <StructureMemberValue name="server">
                        <StructureValue index="1">
                            <StructureMemberValue name="host" value="127.0.0.1"/>
                            <StructureMemberValue name="port" value="8500"/>
                        </StructureValue>
                    </StructureMemberValue>
                </StructureValue>
            </DefaultValue>
        </Parameter>

    </NamespaceDefinition>
</NamespaceDefinitions>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy