-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8011 from kobergj/DocumentRegistry
Switch default registry to `nats-js-kv`
- Loading branch information
Showing
9 changed files
with
128 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Enhancement: Make nats-js-kv the default registry | ||
|
||
The previously used default `mdns` is faulty. Deprecated it together with `consul`, `nats` and `etcd` implementations. | ||
|
||
https://github.com/owncloud/ocis/pull/8011 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
title: Registry | ||
date: 2023-12-19T00:00:00+00:00 | ||
weight: 20 | ||
geekdocRepo: https://github.com/owncloud/ocis | ||
geekdocEditPath: edit/master/docs/services/general-info | ||
geekdocFilePath: registry.md | ||
geekdocCollapseSection: true | ||
--- | ||
|
||
To be able to communicate with each other, services need to register in a common registry. | ||
|
||
## Configuration | ||
|
||
The type of registry to use can be configured with the `MICRO_REGISTRY` environment variable. Supported values are: | ||
|
||
### `memory` | ||
|
||
Setting the environment variable to `memory` starts an inmemory registry. This only works with the single binary deployment. | ||
|
||
### `nats-js-kv` (Default) | ||
|
||
Set the environment variable to `nats-js-kv` or leave it empty to use a nats-js key value store as registry. | ||
- Note: If not running build-in nats, `MICRO_REGISTRY_ADDRESS` needs to be set to the address of the nats-js cluster, which is the same value as `OCIS_EVENTS_ENDPOINT`. | ||
- Optional: Use `MICRO_REGISTRY_AUTH_USERNAME` and `MICRO_REGISTRY_AUTH_PASSWORD` to authenticate with the nats cluster. | ||
### `kubernetes` | ||
|
||
When deploying in a kubernetes cluster, the kubernetes registry can be used. Additionally the `MICRO_REGISTRY_ADDRESS` environment | ||
variable needs to be set to the url of the kubernetes registry. | ||
|
||
### Deprecated Registries | ||
|
||
These registries are currently working but will be removed in a later version. It is recommended to switch to a supported one. | ||
|
||
- `nats`. Uses a registry based on nats streams. Requires `MICRO_REGISTRY_ADDRESS` to bet set. | ||
- `etcd`. Uses an etcd cluster as registry. Requires `MICRO_REGISTRY_ADDRESS` to bet set. | ||
- `consul`. Uses `HashiCorp Consul` as registry. Requires `MICRO_REGISTRY_ADDRESS` to bet set. | ||
- `mdns`. Uses multicast dns for registration. This type can have unwanted side effects when other devices in the local network use mdns too. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters