-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cluster configuration updates (#2029)
* Static and dynamic configuration + Clusters concept updates * added link * more updates * Format * what have i done * built out cluster configuration details * Update docs-src/references/configuration.md * Update docs-src/references/configuration.md * Format * added commonly used dynamic config keys * added commonly used dynamic config keys for reference * fix things * Format * minor corrections and fixes * Format * addressed some comments; more updates to come * Format * Updates per feedback from yycpt, tihomir. and dnr * Updated per David's feedback * Apply suggestions from code review Co-authored-by: David Reiss <[email protected]> * more updates from feedback * typo fixes * fixes typos and some details from David's feedback * cloud limit update for EDU-726 * Addressing comments from David and Yichao * Apply suggestions from Dail's code review Co-authored-by: Dail Magee Jr <[email protected]> * Format * Updates per Dail's review and general cleanup. * minor update to persistenceNamespaceMaxQPS descriptions per Yichao's clarification. * Apply suggestions from code review Co-authored-by: David Reiss <[email protected]> * Format * Apply suggestions from code review Co-authored-by: Dail Magee Jr <[email protected]> * final updates --------- Co-authored-by: aarohib <[email protected]> Co-authored-by: David Reiss <[email protected]> Co-authored-by: Dail Magee Jr <[email protected]>
- Loading branch information
1 parent
6429238
commit 924378c
Showing
42 changed files
with
1,253 additions
and
301 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
--- | ||
id: what-is-cluster-configuration | ||
title: What is Cluster configuration? | ||
sidebar_label: Cluster configuration | ||
description: Cluster Configuration is the setup and configuration details of your Temporal Cluster, defined using YAML. | ||
tags: | ||
- term | ||
- explanation | ||
--- | ||
|
||
Cluster configuration is the setup and configuration details of your self-hosted Temporal Cluster, defined using YAML. | ||
You must define your Cluster configuration when setting up your self-hosted Temporal Cluster. | ||
|
||
For details on using Temporal Cloud, see [Temporal Cloud documentation](/cloud). | ||
|
||
Cluster configuration is composed of two types of configuration: [Static configuration](#static-configuration) and [Dynamic configuration](#dynamic-configuration). | ||
|
||
### Static configuration | ||
|
||
Static configuration contains details of how the Cluster should be set up. | ||
The static configuration is read just once and used to configure service nodes at startup. | ||
Depending on how you want to deploy your self-hosted Temporal Cluster, your static configuration must contain details for setting up: | ||
|
||
- Temporal Services—Frontend, History, Matching, Worker | ||
- Membership ports for the Temporal Services | ||
- Persistence (including History Shard count), Visibility and Advanced Visibility, Archival store setups. | ||
- TLS, authentication, authorization | ||
- Server log level | ||
- Metrics | ||
- Cluster metadata | ||
- Dynamic config Client | ||
|
||
Static configuration values cannot be changed at runtime. | ||
Some values, such as the Metrics configuration or Server log level can be changed in the static configuration but require restarting the Cluster for the changes to take effect. | ||
|
||
For details on static configuration keys, see [Cluster configuration reference](/references/configuration). | ||
|
||
For static configuration examples, see <https://github.com/temporalio/temporal/tree/master/config>. | ||
|
||
### Dynamic configuration | ||
|
||
Dynamic configuration contains configuration keys that you can update in your Cluster setup without having to restart the server processes. | ||
|
||
All dynamic configuration keys provided by Temporal have default values that are used by the Cluster. | ||
You can override the default values by setting different values for the keys in a YAML file and setting the [dynamic configuration client](/references/configuration#dynamicconfigclient) to poll this file for updates. | ||
Setting dynamic configuration for your Cluster is optional. | ||
|
||
Setting overrides for some configuration keys upates the Cluster configuration immediately. | ||
However, for configuration fields that are checked at startup (such as thread pool size), you must restart the server for the changes to take effect. | ||
|
||
Use dynamic configuration keys to fine-tune your self-deployed Cluster setup. | ||
|
||
For details on dynamic configuration keys, see [Dynamic configuration reference](/references/dynamic-configuration). | ||
|
||
For dynamic configuration examples, see <https://github.com/temporalio/temporal/tree/master/config/dynamicconfig>. |
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,32 @@ | ||
--- | ||
id: what-is-cluster-obervability | ||
title: What is Cluster observability? | ||
sidebar_label: Monitoring and observation | ||
description: Monitor and observe Cluster performance with metrics emitted by your self-hosted Temporal Cluster or by Temporal Cloud. | ||
tags: | ||
- explanation | ||
--- | ||
|
||
You can monitor and observe performance with metrics emitted by your self-hosted Temporal Cluster or by Temporal Cloud. | ||
|
||
Temporal emits metrics by default in a format that is supported by Prometheus. | ||
Any metrics software that supports the same format can be used. | ||
Currently, we test with the following Prometheus and Grafana versions: | ||
|
||
- **Prometheus >= v2.0** | ||
- **Grafana >= v2.5** | ||
|
||
Temporal Cloud emits metrics through a Prometheus HTTP API endpoint, which can be directly used as a Prometheus data source in Grafana or to query and export Cloud metrics to any observability platform. | ||
|
||
For details on Cloud metrics and setup, see the following: | ||
|
||
- [Temporal Cloud metrics reference](/cloud/how-to-monitor-temporal-cloud-metrics) | ||
- [Set up Grafana with Temporal Cloud observability to view metrics](/kb/prometheus-grafana-setup-cloud#data-sources-configuration-for-temporal-cloud-and-sdk-metrics-in-grafana) | ||
|
||
On self-hosted Temporal Clusters, expose Prometheus endpoints in your Cluster configuration and configure Prometheus to scrape metrics from the endpoints. | ||
You can then set up your observability platform (such as Grafana) to use Prometheus as a data source. | ||
|
||
For details on self-hosted Cluster metrics and setup, see the following: | ||
|
||
- [Temporal Cluster OSS metrics reference](/references/cluster-metrics) | ||
- [Set up Prometheus and Grafana to view SDK and self-hosted Cluster metrics](/kb/prometheus-grafana-setup) |
Oops, something went wrong.