<commit_before>## Peer Configuration

The chapter describes the options available to configure the Virtual Peers.

<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
**Table of Contents**  *generated with [DocToc](http://doctoc.herokuapp.com/)*

- [Coordinator & Peer](#coordinator-&-peer)
  - [Base Configuration](#base-configuration)
  - [`:hornetq/mode`](#hornetqmode)
  - [UDP Configuration](#udp-configuration)
  - [JGroups Configuration](#jgroups-configuration)
- [Environment Only](#environment-only)
    - [`:hornetq/server`](#hornetqserver)
    - [`:hornetq.server/type`](#hornetqservertype)
    - [`:zookeeper/server`](#zookeeperserver)
  - [Embedded Configuration](#embedded-configuration)
    - [`:hornetq.embedded/config hq-servers`](#hornetqembeddedconfig-hq-servers)
- [Peer Only](#peer-only)
  - [Base Configuration](#base-configuration-1)
    - [`:onyx.peer/inbox-capacity`](#onyxpeerinbox-capacity)
    - [`:onyx.peer/outbox-capacity`](#onyxpeeroutbox-capacity)
    - [`:onyx.peer/retry-start-interval`](#onyxpeerretry-start-interval)
    - [`:onyx.peer/sequential-back-off`](#onyxpeersequential-back-off)
    - [`:onyx.peer/drained-back-off`](#onyxpeerdrained-back-off)
    - [`onyx.peer/fn-params`](#onyxpeerfn-params)
    - [`onyx.peer/join-failure-back-off`](#onyxpeerjoin-failure-back-off)
- [Peer Full Example](#peer-full-example)

<!-- END doctoc generated TOC please keep comment here to allow auto update -->

### Coordinator & Peer

#### Base Configuration

| key name                      | type       |
|-------------------------------|------------|
|`:onyx/id`                     |  `any`     |
|`:hornetq/mode`                |  `keyword` |
|`:zookeeper/address`           |  `string`  |

#### `:hornetq/mode`

The mechanism by which to connect to one or more HornetQ servers. One of `:vm, :udp, :jgroups, :standalone`.

#### UDP Configuration

| key name                       | type       |
|--------------------------------|------------|
|`:hornetq.udp/cluster-name`     |  `string`  |
|`:hornetq.udp/group-address`    |  `string`  |
|`:hornetq.udp/group-port`       |  `int`     |
|`:hornetq.udp/refresh-timeout`  |  `int`     |
|`:hornetq.udp/discovery-timeout`|  `int`     |

#### JGroups Configuration

| key name                                      | type      |
|-----------------------------------------------|-----------|
|`:hornetq.udp/cluster-name`                    |  `string` |
|`:hornetq.jgroups/file jgroups-file`           |  `string` |
|`:hornetq.jgroups/channel-name jgroups-channel`|  `string` |
|`:hornetq.udp/refresh-timeout`                 |  `int`    |
|`:hornetq.udp/discovery-timeout`               |  `int`    |

<<<<<<< HEAD:doc/user-guide/peer-config.md<commit_msg>Closes #71.<commit_after>## Peer Configuration

The chapter describes the options available to configure the Virtual Peers.

<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
**Table of Contents**  *generated with [DocToc](http://doctoc.herokuapp.com/)*

- [Coordinator & Peer](#coordinator-&-peer)
  - [Base Configuration](#base-configuration)
  - [`:hornetq/mode`](#hornetqmode)
  - [UDP Configuration](#udp-configuration)
  - [JGroups Configuration](#jgroups-configuration)
- [Environment Only](#environment-only)
    - [`:hornetq/server`](#hornetqserver)
    - [`:hornetq.server/type`](#hornetqservertype)
    - [`:zookeeper/server`](#zookeeperserver)
  - [Embedded Configuration](#embedded-configuration)
    - [`:hornetq.embedded/config hq-servers`](#hornetqembeddedconfig-hq-servers)
- [Peer Only](#peer-only)
  - [Base Configuration](#base-configuration-1)
    - [`:onyx.peer/inbox-capacity`](#onyxpeerinbox-capacity)
    - [`:onyx.peer/outbox-capacity`](#onyxpeeroutbox-capacity)
    - [`:onyx.peer/retry-start-interval`](#onyxpeerretry-start-interval)
    - [`:onyx.peer/sequential-back-off`](#onyxpeersequential-back-off)
    - [`:onyx.peer/drained-back-off`](#onyxpeerdrained-back-off)
    - [`onyx.peer/fn-params`](#onyxpeerfn-params)
    - [`onyx.peer/join-failure-back-off`](#onyxpeerjoin-failure-back-off)
- [Peer Full Example](#peer-full-example)

<!-- END doctoc generated TOC please keep comment here to allow auto update -->

### Coordinator & Peer

#### Base Configuration

| key name                      | type       |
|-------------------------------|------------|
|`:onyx/id`                     |  `any`     |
|`:hornetq/mode`                |  `keyword` |
|`:zookeeper/address`           |  `string`  |

#### `:hornetq/mode`

The mechanism by which to connect to one or more HornetQ servers. One of `:vm, :udp, :jgroups, :standalone`.

#### VM

None

#### Standalone

| key name                       | type       |
|--------------------------------|------------|
|`:hornetq.standalone/host`      |  `string`  |
|`:hornetq.standalone/port`      |  `int`     |

#### UDP Configuration

| key name                       | type       |
|--------------------------------|------------|
|`:hornetq.udp/cluster-name`     |  `string`  |
|`:hornetq.udp/group-address`    |  `string`  |
|`:hornetq.udp/group-port`       |  `int`     |
|`:hornetq.udp/refresh-timeout`  |  `int`     |
|`:hornetq.udp/discovery-timeout`|  `int`     |

#### JGroups Configuration

| key name                                      | type      |
|-----------------------------------------------|-----------|
|`:hornetq.udp/cluster-name`                    |  `string` |
|`:hornetq.jgroups/file jgroups-file`           |  `string` |
|`:hornetq.jgroups/channel-name jgroups-channel`|  `string` |
|`:hornetq.udp/refresh-timeout`                 |  `int`    |
|`:hornetq.udp/discovery-timeout`               |  `int`    |

{'fraction_non_alphanumeric': 0.22285029119561495, 'fraction_numerical': 0.0006851661527920521, 'mean_word_length': 2.2895774647887324, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 5, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3686329', 'n_tokens_mistral': 2001, 'n_tokens_neox': 1865, 'n_words': 309}