Skip to main content

Couchbase checker

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

  1. Clone the repository
https://github.com/adiosamig/couchbase-complete-snapshot.git
  1. Run the following command in repo's directory.
python3 couchbase-snapshot.py 127.0.0.1 user_name password

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            |
+----+--------------------------------------------------------------------------------------------------------------------+-------------------+-------------------+
----- Ping Test Results -----
+----+-----------------+-------------+---------------+
|    | nodeIp          | pingState   |   latency(us) |
|----+-----------------+-------------+---------------|
|  0 | 172.17.0.2:8091 | ok          |           615 |
|  1 | 172.17.0.3:8091 | ok          |           577 |
|  2 | 172.17.0.4:8091 | ok          |           550 |
|  3 | 172.17.0.5:8091 | ok          |           648 |
+----+-----------------+-------------+---------------+

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.2.tar.gz (18.9 kB view details)

Uploaded Source

Built Distribution

insidecouchbase-0.0.2-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

Details for the file insidecouchbase-0.0.2.tar.gz.

File metadata

  • Download URL: insidecouchbase-0.0.2.tar.gz
  • Upload date:
  • Size: 18.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for insidecouchbase-0.0.2.tar.gz
Algorithm Hash digest
SHA256 cefff5b692901a50786184ff1c4072c64f86f3cbd4d35dedeb7833a6b6d9b22d
MD5 d60ca15f8cbbb58d22a3c8a55e05f807
BLAKE2b-256 50e7c1ba4147438e81dcc600563a18392493f64f656cb79bb22e9aacdfb1ff57

See more details on using hashes here.

File details

Details for the file insidecouchbase-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for insidecouchbase-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ae29244ed3220a68349c76afaf11b92dea47f241ce5183bde6ef7c53090aca13
MD5 dca129e88a5eb2cc335692c67bc1bdb7
BLAKE2b-256 d9ec9cf8e0e588c47b500054b72013bef6ec3a1f40945440045d2f77a9fd612f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page