Skip to content

Commit 8facd22

Browse files
committed
docs(secondary storage): create best practice guide for managing secondary storage
1 parent ff064b5 commit 8facd22

File tree

6 files changed

+165
-2
lines changed

6 files changed

+165
-2
lines changed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
---
2+
title: "Managing Data in Secondary Storage"
3+
tags:
4+
- Database
5+
- Secondary Storage
6+
description: "Best practices for configuring and managing the data in secondary storage."
7+
---
8+
9+
When working with secondary storage, it is important to follow best practices to ensure data integrity and optimal performance. Here are some guidelines to consider:
10+
11+
## Modifying Data in Secondary Storage
12+
13+
To ensure the reliability, security, and proper functioning of your Camunda system, it is essential to follow strict guidelines when considering any changes to data stored in secondary storage.
14+
15+
We advise that you do **not** modify any data in secondary storage unless you have received explicit instructions from the Camunda Support Team during an active support case.
16+
17+
Making changes to secondary storage data without proper guidance exposes your business to several risks:
18+
- **Data Loss**: Unintended or manual modifications can result in missing, overwritten, or deleted information that cannot be recovered without backups.
19+
- **Data Corruption** : Changing data structures or values may leave the system in an inconsistent or corrupted state, possibly leading to application errors or downtime.
20+
- **Unsupported System States**: When data is changed outside prescribed processes, your system may enter a state that is no longer supported by Camunda or compatible with upgrades, patches, or new features.
21+
- **Troubleshooting Challenges**: Untracked modifications make it difficult or impossible for support engineers to identify and resolve issues. This can lead to extended downtime and unresolved problems.
22+
- **Security Vulnerabilities**: Unauthorized changes may inadvertently expose sensitive data, weaken access controls, or create exploitable system weaknesses.
23+
- **Compliance Issues**: Many organizations operate under strict regulatory requirements for data integrity. Unauthorized edits may violate internal or external compliance standards.
24+
25+
## Configuring Shards and Replicas
26+
27+
Proper configuration of shards and replicas in Elasticsearch/OpenSearch is essential for the reliability, performance, and resilience of your Camunda system. Understanding when and how to deploy these features helps ensure you gain the intended benefits, such as fault tolerance and scalability, while avoiding common pitfalls.
28+
29+
While there is no one-size-fits-all approach, here are some general guidelines to consider:
30+
31+
### Shards
32+
33+
The number of primary shards should be determined based on your data size and anticipated growth. A common starting point is to use 1-5 primary shards per index. Partitioning data into multiple shards can improve scalability. However, increasing shard count should be based on system throughput needs and underlying hardware capabilities. Avoid over-sharding, as unnecessary complexity may arise and degrade performance.
34+
35+
### Replicas
36+
37+
- **Single Node Cluster**: Do not configure replicas when your Camunda system is running on a single node cluster. Replicas provide redundancy only when distributed across multiple nodes. On a single node, they do not offer additional protection and simply consume extra resources, in some cases preventing your node ever reporting as healthy.
38+
- **Multiple Node Cluster**: In a multi-node cluster, it is advisable to configure at least one replica for each index. This ensures that if one node fails, the data remains accessible from another node, enhancing fault tolerance and availability.
39+
40+
## Backups
41+
42+
Regular backups of your secondary storage data are crucial for disaster recovery and data integrity. Here are some best practices for managing backups:
43+
44+
- Always follow the official Camunda backup procedure, step-by-step, without omission or variation.
45+
- Regularly schedule backups according to your business needs and system volume.
46+
- Periodically test restoration from backups to ensure your procedures are effective and reliable.
47+
48+
## Index Templates
49+
50+
Camunda uses index templates to define settings and mappings for indices. To ensure that your indices are created with the correct configurations, it is important to avoid:
51+
- Using custom index templates that may conflict with Camunda's default templates. Templates with a higher priority than those set by Camunda can lead to unexpected behavior, such as creating indices with incorrect mappings.
52+
- Deleting or altering existing index templates without guidance from Camunda Support.
53+
54+
## Monitor Secondary Storage Health
55+
56+
Using the [Data Layer Dashboard](/docs/self-managed/operational-guides/monitoring/metrics.md), you can monitor the health and performance of the Camunda Orchestration Cluster and its interaction with secondary storage. This allows you to proactively identify and address potential issues before they impact your system's performance.

sidebars.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ module.exports = {
147147
"components/best-practices/development/routing-events-to-processes",
148148
"components/best-practices/development/testing-process-definitions",
149149
"components/best-practices/development/local-development-with-element-templates",
150+
"components/best-practices/development/secondary-storage-management",
150151
],
151152
Modeling: [
152153
"components/best-practices/modeling/creating-readable-process-models",
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
title: "Managing Data in Secondary Storage"
3+
tags:
4+
- Database
5+
- Secondary Storage
6+
description: "Best practices for configuring and managing the data in secondary storage."
7+
---
8+
9+
When working with secondary storage, it is important to follow best practices to ensure data integrity and optimal performance. Here are some guidelines to consider:
10+
11+
## Modifying Data in Secondary Storage
12+
13+
To ensure the reliability, security, and proper functioning of your Camunda system, it is essential to follow strict guidelines when considering any changes to data stored in secondary storage.
14+
15+
We advise that you do **not** modify any data in secondary storage unless you have received explicit instructions from the Camunda Support Team during an active support case.
16+
17+
Making changes to secondary storage data without proper guidance exposes your business to several risks:
18+
- **Data Loss**: Unintended or manual modifications can result in missing, overwritten, or deleted information that cannot be recovered without backups.
19+
- **Data Corruption** : Changing data structures or values may leave the system in an inconsistent or corrupted state, possibly leading to application errors or downtime.
20+
- **Unsupported System States**: When data is changed outside prescribed processes, your system may enter a state that is no longer supported by Camunda or compatible with upgrades, patches, or new features.
21+
- **Troubleshooting Challenges**: Untracked modifications make it difficult or impossible for support engineers to identify and resolve issues. This can lead to extended downtime and unresolved problems.
22+
- **Security Vulnerabilities**: Unauthorized changes may inadvertently expose sensitive data, weaken access controls, or create exploitable system weaknesses.
23+
- **Compliance Issues**: Many organizations operate under strict regulatory requirements for data integrity. Unauthorized edits may violate internal or external compliance standards.
24+
25+
## Configuring Shards and Replicas
26+
27+
Proper configuration of shards and replicas in Elasticsearch/OpenSearch is essential for the reliability, performance, and resilience of your Camunda system. Understanding when and how to deploy these features helps ensure you gain the intended benefits, such as fault tolerance and scalability, while avoiding common pitfalls.
28+
29+
While there is no one-size-fits-all approach, here are some general guidelines to consider:
30+
31+
### Shards
32+
33+
The number of primary shards should be determined based on your data size and anticipated growth. A common starting point is to use 1-5 primary shards per index. Partitioning data into multiple shards can improve scalability. However, increasing shard count should be based on system throughput needs and underlying hardware capabilities. Avoid over-sharding, as unnecessary complexity may arise and degrade performance.
34+
35+
### Replicas
36+
37+
- **Single Node Cluster**: Do not configure replicas when your Camunda system is running on a single node cluster. Replicas provide redundancy only when distributed across multiple nodes. On a single node, they do not offer additional protection and simply consume extra resources, in some cases preventing your node ever reporting as healthy.
38+
- **Multiple Node Cluster**: In a multi-node cluster, it is advisable to configure at least one replica for each index. This ensures that if one node fails, the data remains accessible from another node, enhancing fault tolerance and availability.
39+
40+
## Backups
41+
42+
Regular backups of your secondary storage data are crucial for disaster recovery and data integrity. Here are some best practices for managing backups:
43+
44+
- Always follow the official Camunda backup procedure, step-by-step, without omission or variation.
45+
- Regularly schedule backups according to your business needs and system volume.
46+
- Periodically test restoration from backups to ensure your procedures are effective and reliable.
47+
48+
## Index Templates
49+
50+
Camunda uses index templates to define settings and mappings for indices. To ensure that your indices are created with the correct configurations, it is important to avoid:
51+
- Using custom index templates that may conflict with Camunda's default templates. Templates with a higher priority than those set by Camunda can lead to unexpected behavior, such as creating indices with incorrect mappings.
52+
- Deleting or altering existing index templates without guidance from Camunda Support.
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
title: "Managing Data in Secondary Storage"
3+
tags:
4+
- Database
5+
- Secondary Storage
6+
description: "Best practices for configuring and managing the data in secondary storage."
7+
---
8+
9+
When working with secondary storage, it is important to follow best practices to ensure data integrity and optimal performance. Here are some guidelines to consider:
10+
11+
## Modifying Data in Secondary Storage
12+
13+
To ensure the reliability, security, and proper functioning of your Camunda system, it is essential to follow strict guidelines when considering any changes to data stored in secondary storage.
14+
15+
We advise that you do **not** modify any data in secondary storage unless you have received explicit instructions from the Camunda Support Team during an active support case.
16+
17+
Making changes to secondary storage data without proper guidance exposes your business to several risks:
18+
- **Data Loss**: Unintended or manual modifications can result in missing, overwritten, or deleted information that cannot be recovered without backups.
19+
- **Data Corruption** : Changing data structures or values may leave the system in an inconsistent or corrupted state, possibly leading to application errors or downtime.
20+
- **Unsupported System States**: When data is changed outside prescribed processes, your system may enter a state that is no longer supported by Camunda or compatible with upgrades, patches, or new features.
21+
- **Troubleshooting Challenges**: Untracked modifications make it difficult or impossible for support engineers to identify and resolve issues. This can lead to extended downtime and unresolved problems.
22+
- **Security Vulnerabilities**: Unauthorized changes may inadvertently expose sensitive data, weaken access controls, or create exploitable system weaknesses.
23+
- **Compliance Issues**: Many organizations operate under strict regulatory requirements for data integrity. Unauthorized edits may violate internal or external compliance standards.
24+
25+
## Configuring Shards and Replicas
26+
27+
Proper configuration of shards and replicas in Elasticsearch/OpenSearch is essential for the reliability, performance, and resilience of your Camunda system. Understanding when and how to deploy these features helps ensure you gain the intended benefits, such as fault tolerance and scalability, while avoiding common pitfalls.
28+
29+
While there is no one-size-fits-all approach, here are some general guidelines to consider:
30+
31+
### Shards
32+
33+
The number of primary shards should be determined based on your data size and anticipated growth. A common starting point is to use 1-5 primary shards per index. Partitioning data into multiple shards can improve scalability. However, increasing shard count should be based on system throughput needs and underlying hardware capabilities. Avoid over-sharding, as unnecessary complexity may arise and degrade performance.
34+
35+
### Replicas
36+
37+
- **Single Node Cluster**: Do not configure replicas when your Camunda system is running on a single node cluster. Replicas provide redundancy only when distributed across multiple nodes. On a single node, they do not offer additional protection and simply consume extra resources, in some cases preventing your node ever reporting as healthy.
38+
- **Multiple Node Cluster**: In a multi-node cluster, it is advisable to configure at least one replica for each index. This ensures that if one node fails, the data remains accessible from another node, enhancing fault tolerance and availability.
39+
40+
## Backups
41+
42+
Regular backups of your secondary storage data are crucial for disaster recovery and data integrity. Here are some best practices for managing backups:
43+
44+
- Always follow the official Camunda backup procedure, step-by-step, without omission or variation.
45+
- Regularly schedule backups according to your business needs and system volume.
46+
- Periodically test restoration from backups to ensure your procedures are effective and reliable.
47+
48+
## Index Templates
49+
50+
Camunda uses index templates to define settings and mappings for indices. To ensure that your indices are created with the correct configurations, it is important to avoid:
51+
- Using custom index templates that may conflict with Camunda's default templates. Templates with a higher priority than those set by Camunda can lead to unexpected behavior, such as creating indices with incorrect mappings.
52+
- Deleting or altering existing index templates without guidance from Camunda Support.

versioned_sidebars/version-8.6-sidebars.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,8 @@
620620
"components/best-practices/development/dealing-with-problems-and-exceptions",
621621
"components/best-practices/development/handling-data-in-processes",
622622
"components/best-practices/development/routing-events-to-processes",
623-
"components/best-practices/development/testing-process-definitions"
623+
"components/best-practices/development/testing-process-definitions",
624+
"components/best-practices/development/secondary-storage-management"
624625
],
625626
"Modeling": [
626627
"components/best-practices/modeling/creating-readable-process-models",

versioned_sidebars/version-8.7-sidebars.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,8 @@
777777
"components/best-practices/development/dealing-with-problems-and-exceptions",
778778
"components/best-practices/development/handling-data-in-processes",
779779
"components/best-practices/development/routing-events-to-processes",
780-
"components/best-practices/development/testing-process-definitions"
780+
"components/best-practices/development/testing-process-definitions",
781+
"components/best-practices/development/secondary-storage-management"
781782
],
782783
"Modeling": [
783784
"components/best-practices/modeling/creating-readable-process-models",

0 commit comments

Comments
 (0)