Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Configurable Sub Elements
Element NameDescriptionTypeDefault ValueFixed ValuesMandatory/
Optional
Notes
<default>Sets the default virtual host for connections which do not specify a vhStringcarbonone of defined virtual-hostsMandatory 

<virtualhost>

Define a virtual host and all it's configurations under this element. All sub sections are under this element.

Configurable Sub Elements
Element NameDescriptionTypeDefault ValueFixed ValuesMandatory/OptionalNotes
<name>Sets the identifiable name for the virtualhostStringcarbonN/AMandatory 

<carbon>

All configuration options for "carbon" virtual host are defined under this element.

<store>

Defines the store properties used by this virtual host to keep messages. By default, the Cassandra based message store is configured. 

Configurable Sub Elements
Element NameDescriptionTypeDefault ValueFixed ValuesMandatory/
Optional
Notes
<class>The class that implements the message store.String org.wso2.andes.server.store.
CassandraMessageStore
 N/AMandatoryThis should be defined in the class path by the time the broker is started
<username>The username for message store accessStringadmin Mandatory 
<password>The password for message store accessStringadmin Mandatory 
<cluster>The name of the cluster to which this broker instance should be registeredStringClusterOne Mandatory 
<idGenerator>The class generating message IDs for global sync across the clusterStringorg.wso2.andes.server.cluster.coordination.
TimeStampBasedMessageIdGenerator
 Mandatory 
<connectionString>Connection string for the message store localhost:9160  

If you have a Cassandra profile running or Cassandra cluster running this should point to that running instance or cluster.

<advanced>

This section is used to change the default configurations of the Cassandra instance. These values will be used when running the broker in a clustered Cassandra set up.

Configurable Sub Elements
Element NameDescriptionTypeDefault ValueFixed Values

Mandatory/Optional

Notes
<GCGraceSeconds>This specifies the time to wait before garbage collector collecting tombstones (deletion markers) from cassandra.int864000 (10 days)0 - 864000Mandatory

Set this to a large enough value which the deletion marker will be propagated to all replicas by the time this many seconds has elapsed.In a single-node cassandra cluster it can be safely set to zero.

<replicationFactor>The replication factor specifies how many copies of each data will be stored and distributed throughout the cassandra cluster.Int1N/AMandatory

If the strategy class is set to 'org.apache.cassandra.locator.NetworkTopologyStrategy' do not set this value in the replication factor.

<readConsistencyLevel>This specifies how many replicas must respond before a result is returned to the client.StringQUORUMONE, TWO, THREE, QUORUM, ALL, ANY, EACH_QUORUM, LOCAL_QUORUMMandatory
QUORUM = (replication_factor  / 2) + 1
<writeConsistencyLevel>This specifies how many replicas the write must succeed before returning an acknowledgement to the client.StringQUORUMONE, TWO, THREE, QUORUM, ALL, ANY, EACH_QUORUM, LOCAL_QUORUMMandatory 
<strategyClass> Stringorg.apache.cassandra.locator.SimpleStrategySimpleStrategy/NetworkTopologyStrategyMandatory 

<housekeeping>

Housekeeping task configurations for virtualhosts.

Configurable Sub Elements
Element NameDescriptionTypeDefault ValueFixed ValuesMandatory/
Optional
Notes
<threadCount> Int2N/AMandatory 
<expiredMessageCheckPeriod> Milliseconds20000N/AMandatory 

<exchanges>

Define the types of additional AMQP exchange available for this vh. Always get amq.direct (for queues) and amq.topic (for topics) by default. Declare an additional exchange type for developer use only.

<queues>

Note that if you do not add details of a queue or topic you intend to use to this file, you must first create a consumer on a queue/topic before you can publish to it using WSO2 MB. 

Configurable Sub Elements
Element NameDescriptionTypeDefault ValueFixed ValuesMandatory/
Optional
Notes
<maximumQueueDepth>Defines the maximum number of messages that can be kept in the internal queue buffer for delivery. You can switch it off by setting it to 0. 0N/A Mandatory 
<maximumMessageSize>The maximum size, in bytes, of the messages that can be kept in the queue. You can switch it off by setting it to 0. 0N/A Mandatory 
<maximumMessageAge>Messages kept for this amount of time in the broker will be dropped. You can switch it off by setting it to 0. N/A Mandatory 
<maximumMessageCount>The maximum message count of a queue. You can switch it off by setting it to 0. 0N/A Mandatory