Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CE-657 - Move Application leader election tutorial to docs #21366

Merged
merged 18 commits into from
Aug 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion website/content/api-docs/kv.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ The corresponding CLI command is [`consul kv put`](/consul/commands/kv/put).
session has locked the key.**

For an example of how to use the lock feature, check the
[Leader Election tutorial](/consul/tutorials/developer-configuration/application-leader-elections).
[Leader Election tutorial](/consul/docs/dynamic-app-config/sessions/application-leader-election).

- `release` `(string: "")` - Supply a session ID to use in a release operation. This is
useful when paired with `?acquire=` as it allows clients to yield a lock. This
Expand Down
2 changes: 1 addition & 1 deletion website/content/api-docs/session.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ The table below shows this endpoint's support for
86400s). If provided, the session is invalidated if it is not renewed before
the TTL expires. The lowest practical TTL should be used to keep the number of
managed sessions low. When locks are forcibly expired, such as when following
the [leader election pattern](/consul/tutorials/developer-configuration/application-leader-elections) in an application,
the [leader election pattern](/consul/docs/dynamic-app-config/sessions/application-leader-election) in an application,
sessions may not be reaped for up to double this TTL, so long TTL
values (> 1 hour) should be avoided. Valid time units include "s", "m" and "h".

Expand Down
2 changes: 1 addition & 1 deletion website/content/commands/lock.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ communication is disrupted, the child process is terminated.

The number of lock holders is configurable with the `-n` flag. By default,
a single holder is allowed, and a lock is used for mutual exclusion. This
uses the [leader election algorithm](/consul/tutorials/developer-configuration/application-leader-elections).
uses the [leader election algorithm](/consul/docs/dynamic-app-config/sessions/application-leader-election).

If the lock holder count is more than one, then a semaphore is used instead.
A semaphore allows more than a single holder, but this is less efficient than
Expand Down
2 changes: 1 addition & 1 deletion website/content/docs/dynamic-app-config/kv/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ increment to the `LockIndex` and the session value is updated to reflect the
session holding the lock. Review the session documentation for more information
on the [integration](/consul/docs/dynamic-app-config/sessions#k-v-integration).

Review the following tutorials to learn how to use Consul sessions for [application leader election](/consul/tutorials/developer-configuration/application-leader-elections) and
Review the following tutorials to learn how to use Consul sessions for [application leader election](/consul/docs/dynamic-app-config/sessions/application-leader-election) and
to [build distributed semaphores](/consul/tutorials/developer-configuration/distributed-semaphore).

### Vault
Expand Down
Loading
Loading