-
Notifications
You must be signed in to change notification settings - Fork 40
Add repo sync error notification config #7618 #2025
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
Draft
alhambrav
wants to merge
1
commit into
craftercms:5
Choose a base branch
from
alhambrav:update-cluster-failure-notification-config
base: 5
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
:is-up-to-date: True | ||
:last-updated: 4.1.2 | ||
:last-updated: 5.0.0 | ||
|
||
.. index:: Performance and Scaling, Optimization, Clustering, CDN, Multi-region, Global Delivery | ||
|
||
|
@@ -587,6 +587,16 @@ Configuring Nodes in the Cluster | |
#studio.notification.cluster.startupError.subject: "Action Required: Studio Cluster Error" | ||
#studio.notification.cluster.startupError.template: startupError.ftl | ||
#studio.notification.cluster.startupError.recipients: [email protected] | ||
# Enable notifications when a repository sync error occurs in the cluster | ||
studio.notification.cluster.repoSyncError.enabled: true | ||
# Number of errors required before triggering a repository sync error notification | ||
studio.notification.cluster.repoSyncError.count.threshold: 5 | ||
# Subject line of the repository sync error notification email | ||
studio.notification.cluster.repoSyncError.subject: "Action Required: Studio Cluster Sync Error" | ||
# Template file used for formatting the repository sync error notification content | ||
studio.notification.cluster.repoSyncError.template: repoSyncError.ftl | ||
# List of recipients who will receive the repository sync error notification (comma-separated emails) | ||
studio.notification.cluster.repoSyncError.recipients: | ||
|
||
# Cluster member registration, this registers *this* server into the pool | ||
# Cluster node registration data, remember to uncomment the next line | ||
|
@@ -640,17 +650,45 @@ Configuring Nodes in the Cluster | |
| | ||
| | ||
|
||
.. _authoring-cluster-startup-failure-notification-config: | ||
.. _authoring-cluster-failure-notification-config: | ||
|
||
**Cluster Startup Failure Notification Configuration** | ||
|
||
To configure a list of email recipients to inform them of a startup failure, uncomment and configure the following: | ||
|
||
- **studio.notification.cluster.startupError.subject**: subject for the email | ||
- **studio.notification.cluster.startupError.template**: template used for the email message | ||
- **studio.notification.cluster.startupError.recipients**: list of emails to send the notification, must be separated by commas. | ||
|
||
| | ||
|
||
**Repository Synchronization Failure Notification Configuration** | ||
|
||
.. version_tag:: | ||
:label: Since | ||
:version: 5.0 | ||
|
||
To enable notifications for repo sync failures and to configure the number of continuous errors before sending out | ||
an email notification for repo sync failures, set the following properties: | ||
|
||
.. code-block:: yaml | ||
|
||
# Enable notifications when a repository sync error occurs in the cluster | ||
studio.notification.cluster.repoSyncError.enabled: true | ||
# Number of errors required before triggering a repository sync error notification | ||
studio.notification.cluster.repoSyncError.count.threshold: 5 | ||
# Subject line of the repository sync error notification email | ||
studio.notification.cluster.repoSyncError.subject: "Action Required: Studio Cluster Sync Error" | ||
# Template file used for formatting the repository sync error notification content | ||
studio.notification.cluster.repoSyncError.template: repoSyncError.ftl | ||
# List of recipients who will receive the repository sync error notification (comma-separated emails) | ||
studio.notification.cluster.repoSyncError.recipients: | ||
|
||
| | ||
| | ||
|
||
**Hazelcast Configuration File** | ||
|
||
Configure the Hazelcast configuration file location in Studio, by uncommenting ``studio.hazelcast.config.location``. You will create the Hazelcast configuration file in a later step. | ||
|
||
.. code-block:: yaml | ||
|
@@ -665,6 +703,8 @@ Configuring Nodes in the Cluster | |
| | ||
| | ||
|
||
**Location and Times Configuration** | ||
|
||
Configure the following times and locations. Leave the environment variables, e.g. ``${env:MARIADB_CLUSTER_NAME}``. You can see the configuration of the environment variables in a later step. | ||
|
||
.. code-block:: yaml | ||
|
@@ -1170,6 +1210,15 @@ icon from the top right of the browser, then click on ``Cluster`` from the Sideb | |
The above image shows a working cluster. See the :ref:`Cluster Tool <clustering-cluster-tool>` section above for more | ||
information on the items displayed in the tool. | ||
|
||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
Via the Health-Check Endpoint | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
Crafter Studio provides a health-check endpoint that returns the current status of a node, including the role | ||
(primary or replica) and status for accepting traffic when clustering is enabled. The health-check endpoint is at | ||
:base_url:`/studio/api/2/monitoring/status?token={your management token} <_static/api/studio.html#tag/monitoring/operation/getStatus>` |br| | ||
See the :ref:`cluster health-check response <cluster-health-check-response>` section above for more information on the | ||
endpoint response. | ||
|
||
|hr| | ||
|
||
""""""""""""""""""" | ||
|
@@ -1208,9 +1257,9 @@ Whenever your authoring cluster has a Git or DB sync failure, the following logs | |
An email will also be sent to the configured list of recipients to inform them of the failure. | ||
|
||
See the :ref:`setup-a-two-node-cluster-with-studio` article then scroll to the | ||
:ref:`failure notification properties <authoring-cluster-startup-failure-notification-config>` section | ||
:ref:`failure notification properties <authoring-cluster-failure-notification-config>` section | ||
for more information on how to configure the list of recipients to be informed in case of a | ||
startup failure in the authoring cluster. | ||
startup or sync failure in the authoring cluster. | ||
|
||
This section discusses how to fix the sync failure in your authoring cluster. | ||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We still didn't split 4 and 5. I can't merge this yet. We either make this a draft, or we need to split, yet make 4 the default. I would rather draft this PR.