github.com/choria-io/go-choria@v0.28.1-0.20240416190746-b3bf9c7d5a45/packager/templates/debian/global/broker.conf (about)

     1  logfile = /var/log/{{cpkg_name}}.log
     2  loglevel = info
     3  
     4  # For full configuration details please consult https://choria.io/docs
     5  
     6  # The Choria broker can host your middleware, federation brokers and protocol adapters
     7  # all in one binary or even one process.
     8  #
     9  # You can enable all the below features and run just one `choria broker` instance to
    10  # use them all.  For federation and Adapters you can scale horizontally across nodes
    11  # and the network broker supports clustering as below
    12  #
    13  # At least 1 feature has to be enabled else it will exit.
    14  
    15  
    16  # setting up a 3 node choria broker cluster.
    17  #
    18  # ports:
    19  #   all your clients and nodes connect to 4222
    20  #   the broker cluster is on 5222
    21  #   monitoring is on 8222
    22  #
    23  # required:
    24  #
    25  # plugin.choria.broker_network = true
    26  # plugin.choria.network.peers = nats://choria1:5222, nats://choria2:5222, nats://choria3:5222
    27  #
    28  # optional:
    29  #
    30  # plugin.choria.network.client_port = 4222
    31  # plugin.choria.network.peer_port = 5222
    32  # plugin.choria.network.monitor_port = 8222
    33  # plugin.choria.network.peer_user = choria_cluster
    34  # plugin.choria.network.peer_password = s£cret
    35  
    36  plugin.choria.broker_network = false
    37  
    38  # setting up a federation broker
    39  #
    40  # for full details see http://choria.io/docs/federation/
    41  #
    42  # plugin.choria.broker_federation = true
    43  # plugin.choria.federation.cluster = development
    44  # plugin.choria.federation.instance = 1 @ dev8.devco.net
    45  # plugin.choria.srv_domain = dev.devco.net
    46  
    47  plugin.choria.broker_federation = false
    48  
    49  # Setting up a protocol adapter to publish registration messages to NATS Streaming
    50  #
    51  # Here a listener is setup on the collective and received all messages from the
    52  # discovery subsystem and republish them to NATS Streaming.  This creates a log
    53  # like Kafka from where you can consume the stream of data, go back in time,
    54  # etc using your own client code to build whatever integration you want
    55  #
    56  # plugin.choria.adapters = cmdb
    57  #
    58  # here is the Collective side that receives the messages:
    59  #
    60  #   plugin.choria.adapter.cmdb.ingest.topic = mcollective.broadcast.agent.discovery
    61  #   plugin.choria.adapter.cmdb.ingest.protocol = request # or reply
    62  #   plugin.choria.adapter.cmdb.ingest.workers = 10 # default
    63  #
    64  # This is the side that rewrites to the stream, messages are published as
    65  # JSON to a topic my.cmdb, payload has body, sender and time.  Body is
    66  # Base64 encoded
    67  #
    68  #   plugin.choria.adapter.cmdb.type = nats_stream
    69  #   plugin.choria.adapter.cmdb.stream.servers = stan1:4222,stan2:4222
    70  #   plugin.choria.adapter.cmdb.stream.clusterid = prod
    71  #   plugin.choria.adapter.cmdb.stream.topic = my.cmdb
    72  #   plugin.choria.adapter.cmdb.stream.workers = 10 # default