Check and analyze a couchbase cluster in terms of cluster health,bucket,and replication
Project description
Couchbase Complete Snapshot
Couchbase complete snapshot is responsible for collecting metrics from a single cluster and evaluating the results according to the production best practices
Production Check List
Cluster Health Check List
Architecture
- MDS model should be applied for better scaling and stability.
- Couchbase version should be the same among the nodes in the cluster.
Buckets
- Couchbase bucket should have at least 1 replica.
- Couchbase bucket should have 1024 primary vbuckets.
- A couchbase bucket's resident ratio needs to be high(It depends according to your bucket size, memory size etc..)
Settings
- Auto failover configuration needs to be enabled.
- Email alerts needs to be enabled.
XDCR Health Check List
- XDCR cluster versions should be the with the production cluster.
Installation and Running
- Install the module
pip3 install insidecouchbase
- Run the following command in repo's directory.
import couchbase
demo=couchbase.couchbasePlatform('127.0.0.1','Administrator','test123')
demo.getClusterVersion()
demo.getUsersOnCluster()
demo.getXdcrConnections()
demo.getNodesOnCluster()
demo.prepareBucketData()
demo.getSettings()
demo.getRebalance()
demo.takePicture()
Example results
----- Cluster Nodes -----
+----+-----------------+-----------------+---------------+-----------------+-----------------------+
| | nodeIP | clusterMember | healtStatus | services | couchbaseVersion |
|----+-----------------+-----------------+---------------+-----------------+-----------------------|
| 0 | 172.17.0.2:8091 | active | healthy | ['kv'] | 7.1.3-3479-enterprise |
| 1 | 172.17.0.3:8091 | active | healthy | ['kv'] | 7.1.3-3479-enterprise |
| 2 | 172.17.0.4:8091 | active | healthy | ['kv'] | 7.1.3-3479-enterprise |
| 3 | 172.17.0.5:8091 | active | healthy | ['index', 'kv'] | 7.1.3-3479-enterprise |
+----+-----------------+-----------------+---------------+-----------------+-----------------------+
----- Cluster Buckets -----
+----+--------------+-----------------------+--------------+------------------+-------------------------+-------------------+-----------------------+---------------------+
| | bucketName | primaryVbucketCount | bucketType | bucketReplicas | bucketQuotaPercentage | bucketItemCount | bucketResidentRatio | bucketDisUsedInMb |
|----+--------------+-----------------------+--------------+------------------+-------------------------+-------------------+-----------------------+---------------------|
| 0 | beer-sample | 1024 | membase | 1 | 7.8 | 7303 | 100 | 48.2 |
+----+--------------+-----------------------+--------------+------------------+-------------------------+-------------------+-----------------------+---------------------+
----- Cluster XDCR -----
+----+------------+--------------------+--------------+
| | xdcrName | xdcrConnectivity | targetNode |
|----+------------+--------------------+--------------|
| 0 | demo | RC_OK | 172.17.0.6 |
| 1 | demo_2 | RC_OK | 172.17.0.7 |
+----+------------+--------------------+--------------+
----- Cluster Roles -----
----- Cluster Settings -----
+----+-----------------+----------+
| | configName | status |
|----+-----------------+----------|
| 0 | autofailover | True |
| 1 | email-alerting | False |
| 2 | auto-compaction | 30 |
+----+-----------------+----------+
Good
----- Check Notes -----
+----+--------------------------------------------------------------------------------------------------------------------+-------------------+-------------------+
| | problemStatement | problemArea | problemSeverity |
|----+--------------------------------------------------------------------------------------------------------------------+-------------------+-------------------|
| 0 | XDCR and Production cluster versions are different | 172.17.0.7 - XDCR | Critical |
| 1 | The node has multiple couchbase services.For production MDS model should be followed. | 172.17.0.5:8091 | Medium |
| 2 | Email alerts are disabled | Cluster | Critical |
| 3 | Default node exporter port can not be reached.If node exporter port is different from default ignore this problem. | Monitoring | Medium |
+----+--------------------------------------------------------------------------------------------------------------------+-------------------+-------------------+
Supported Couchbase Version
- Couchbase 7.0.X
- Couchbase 7.1.X
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
insidecouchbase-0.0.4.tar.gz
(19.0 kB
view details)
Built Distribution
File details
Details for the file insidecouchbase-0.0.4.tar.gz
.
File metadata
- Download URL: insidecouchbase-0.0.4.tar.gz
- Upload date:
- Size: 19.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b0268e334530a8557531e99785d0c4993b9d19ebbb4ec063842587bc19e564f |
|
MD5 | d2042f3921727cd0c52516a9ebfa524d |
|
BLAKE2b-256 | 6dc2fb535e18b305d56b39c836d7e84d389e79655ed068067a514e0ced433ec3 |
File details
Details for the file insidecouchbase-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: insidecouchbase-0.0.4-py3-none-any.whl
- Upload date:
- Size: 17.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a914afbca8978c0579d153b06e9df52f4aa8dd02de9a3ea8a510ac8f07adbb0 |
|
MD5 | a68bb3fd1442b7aafca3058c42b18ad4 |
|
BLAKE2b-256 | 339fe928137d83061e9a66c5fae6073a1e80fd43eaec93e0671b3d4a98b9935a |