Conversation
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
b852732 to
afb269f
Compare
| @@ -20,6 +20,6 @@ Contact your Snyk account team or [Snyk support](https://support.snyk.io/s/) if | |||
|
|
|||
| ### High Availability Mode | |||
There was a problem hiding this comment.
High availability mode
| ### High Availability Mode | ||
|
|
||
| High Availability Mode for a Universal Broker deployment is enabled by default and can be disabled by by setting the `BROKER_HA_MODE_ENABLED=false` environment variable inside the container. When this mode is enabled, the Universal Broker deployment will support up to four Broker client replicas. | ||
| High Availability Mode for a Universal Broker deployment is enabled by default, the Universal Broker deployment will support up to four Broker client replicas. |
There was a problem hiding this comment.
High availability (HA) mode for a Universal Broker deployment is enabled by default. The Universal Broker deployment supports up to four Broker client replicas.
| High Availability Mode for a Universal Broker deployment is enabled by default and can be disabled by by setting the `BROKER_HA_MODE_ENABLED=false` environment variable inside the container. When this mode is enabled, the Universal Broker deployment will support up to four Broker client replicas. | ||
| High Availability Mode for a Universal Broker deployment is enabled by default, the Universal Broker deployment will support up to four Broker client replicas. | ||
|
|
||
| For more information on High Availability Mode, please refer to the [HA mode documentation page.](../../../implementation-and-setup/enterprise-setup/snyk-broker/high-availability-mode.md) |
There was a problem hiding this comment.
For more information about HA mode, visit High availability mode.
| * An SCM token or password. Snyk Broker does not support authentication with the mTLS method. | ||
| * Node 20 or higher installed. | ||
| * Docker configured to pull images from Docker Hub in order to install with Docker. | ||
| * Docker Compose install and configured to pull images from Docker Hub. |
There was a problem hiding this comment.
Is Docker Compose a prerequisite? Elsewhere, we recommend it, but don't seem to require it. Which is correct?
|
|
||
| Linux/Mac | ||
|
|
||
| * `export SNYK_TOKEN=xxxx` |
There was a problem hiding this comment.
We should replace xxxx with <your_snyk_token> and yyyy with <your_tenant_id>, here and in the Windows commands.
|
|
||
| ### Usage | ||
|
|
||
| 1. Create a .env file with required and optional configuration variables: |
There was a problem hiding this comment.
Create a .env file with required and optional configuration variables:
| -e PORT=8000 | ||
| -e <YOUR_CREDENTIALS_REFERENCE>=<secret value> | ||
| snyk/broker:universal | ||
| 2. Copy this example file to docker-compose.yaml |
There was a problem hiding this comment.
Copy this example file to docker-compose.yaml.
| - "${EXTERNAL_PORT_2:-8001}:${PORT:-8000}" | ||
| restart: unless-stopped | ||
| ``` | ||
| 3. Run `docker compose up -d` to start the containers |
There was a problem hiding this comment.
Run docker compose up -d to start the containers.
| # High availability mode | ||
|
|
||
| Snyk Broker can bring high availability capabilities to both servers and clients, thus increasing the scalability of the current Broker, initially to support the addition of the “git-clone-through-broker” flow for Snyk Code. | ||
| The Snyk Broker client offers high availability capabilities by default for greater scalability of the Broker, initially to support the addition of the “git-clone-through-broker” flow for Snyk Code. |
There was a problem hiding this comment.
The Snyk Broker client offers high availability (HA) capabilities for greater scalability of the Broker, initially to support the addition of the “git-clone-through-broker” flow for Snyk Code.
That said, if we're past the point where this is just used for “git-clone-through-broker” for Code, we can remove this sentence altogether. The paragraph that follows it is a good intro to the topic.
| <figure><img src="../../../.gitbook/assets/snyk-broker-ha-mode.png" alt="Operation of multiple Broker clients in high availability"><figcaption><p>Operation of multiple Broker clients in high availability</p></figcaption></figure> | ||
|
|
||
| To use high availability mode, deploy more than one replica, either by running more than one container or by increasing the replica count in your Kubernetes deployment. Each container must have the exact same parameters. | ||
| To use high availability mode, we recommend using docker-compose to run multiple replicas (see example here) or by increasing the replica count in your Kubernetes deployment. Each container must have the exact same parameters. |
There was a problem hiding this comment.
"Docker Compose", not "docker-compose". We're also missing a link to the example.
Enchances the Snyk Broker documentation surrounding High Availability (HA) mode to provide better gudiance for running multiple instances of the Broker Client and adding an example Docker Compose file for deployments
High Availability Mode documentation updates:
deployment-tips-and-reference-architectures.md)high-availability-mode.md)BROKER_CLIENT_URLandBROKER_TOKEN. (high-availability-mode.md)Prerequisites and deployment guidance:
prerequisites-for-universal-broker.md)Running the Universal Broker client:
running-your-universal-broker-client.md)