Skip to content

Commit 202d5c9

Browse files
Improve READMEs putting user-facing docs first
Better positions of readme sections and linking. Also update docker-compose version.
1 parent 77812ee commit 202d5c9

File tree

3 files changed

+27
-15
lines changed

3 files changed

+27
-15
lines changed

README.md

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,29 @@
22

33
A script for collecting a diagnostic snapshot (support bundle) from each node in a Cassandra based cluster.
44

5-
The code for the collector script is in the _ds-collector/_ directory.
65

7-
Then _ds-collector/_ code must first be built into a `ds-collector*.tar.gz` tarball.
6+
# Users: Running the Collector against your Cluster
87

9-
The built `ds-collector*.tar.gz` tarball is then extracted onto a bastion or jumpbox that has access to the nodes in the cluster. Once extracted, the configuration file (collector.conf) can be edited to match any cluster deployment customisations (e.g. non-default port numbers, non-default log location, etc). The ds-collector script can then be executed; first in test mode and then in collection mode.
8+
Download the latest `ds-collector.GENERIC-*.tar.gz` release from the [releases page](https://github.com/datastax/diagnostic-collection/releases).
109

10+
This `ds-collector*.tar.gz` tarball is then extracted onto a bastion or jumpbox that has access to the nodes in the cluster.
1111

12-
# Pre-configuring the Collector Configuration
12+
Instructions for running the Collector is found in [`ds-collector/README.md`](https://github.com/datastax/diagnostic-collection/blob/master/ds-collector/README.md).
13+
14+
If you hit any issues please also read [`ds-collector/TROUBLESHOOTING.md`](https://github.com/datastax/diagnostic-collection/blob/master/ds-collector/TROUBLESHOOTING.md).
15+
16+
These instructions are also bundled into the built collector tarball.
17+
18+
19+
# Developers: Building from source code
20+
21+
The code for the collector script is in the _ds-collector/_ directory. This top-level directory contains the `Makefile` for developers wishing to build the ds-collector bundle for themselves.
22+
23+
Then _ds-collector/_ code gets built into a `ds-collector*.tar.gz` tarball.
24+
25+
26+
27+
## Pre-configuring the Collector Configuration
1328
When building the collector, it can be instructed to pre-configure the collector.conf by setting the following variables:
1429

1530
```bash
@@ -24,7 +39,7 @@ export is_k8s=true
2439
If no variables are set, then the collector will be pre-configured to assume Apache Cassandra running on hosts which can be accessed via SSH.
2540

2641

27-
# Building the Collector
42+
## Building the Collector
2843
Build the collector using the following make command syntax. You will need make and Docker.
2944

3045
```bash
@@ -36,7 +51,7 @@ make
3651
This will generate a _.tar.gz_ tarball with the `issueId` set in the packaged configuration file. The archive will named in the format `ds-collector.$ISSUE.tar.gz`.
3752

3853

39-
# Building the Collector with automatic s3 upload ability
54+
## Building the Collector with automatic s3 upload ability
4055

4156
If the collector is built with the following variables defined, all collected diagnostic snapshots will be encrypted and uploaded to a specific AWS S3 bucket. Encryption will use a one-off built encryption key that is created locally.
4257

@@ -56,7 +71,7 @@ This will then generate a .tar.gz tarball as described above, additionally with
5671
In addition to the _.tar.gz_ tarball, an encryption key is now generated. The encryption key must be placed in the same directory as the extracted collector tarball for it to execute. If the tarball is being sent to someone else, it is recommeneded to send the encryption key via a different (and preferably secured) medium.
5772

5873

59-
# Storing Encryption keys within the AWS Secrets Manager
74+
## Storing Encryption keys within the AWS Secrets Manager
6075
The collector build process also supports storing and retrieving keys from the AWS secrets manager, to use this feature, 2 additional environment variables must be provided before the script is run.
6176

6277
```bash
@@ -76,6 +91,3 @@ When the collector is built, it will also upload the generated encryption key to
7691
Please be careful with the encryption keys. They should only be stored in a secure vault (such as the AWS Secrets Manager), and temporarily on the jumpbox or bastion where and while the collector script is being executed. The encryption key ensures the diagnostic snapshots are secured when transferred over the network and stored in the AWS S3 bucket.
7792

7893

79-
# Executing the Collector Script against a Cluster
80-
81-
Instructions for execution of the Collector script are found in `ds-collector/README.md`. These instructions are also bundled into the built collector tarball.

ds-collector-tests/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: '3.2'
1+
version: '3.8'
22

33
services:
44
cassandra-00:

ds-collector/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@ Diagnostic Collector for Apache Cassandra™, DSE™, HCD™, …
33

44
The Diagnostic Collector bundle is used to collect diagnostic snapshots (support bundles) over all nodes in an Apache Cassandra, or Cassandra based product, cluster.
55

6-
It can be run on Linux or Mac server that has ssh/docker/k8s access to the nodes in the cluster. It cannot be directly run on a node in the cluster.
6+
It can be run on Linux or Mac server (jumpbox or bastion) that has ssh/docker/k8s access to the nodes in the cluster.
77

8+
Download the latest `ds-collector.GENERIC-*.tar.gz` release from the [releases page](https://github.com/datastax/diagnostic-collection/releases).
9+
10+
This `ds-collector*.tar.gz` tarball is then extracted on jumpbox or bastion.
811

912

1013
Quick Start
@@ -17,9 +20,6 @@ Just do it, the following instructions ​work for most​ people.
1720
tar -xvf ds-collector.*.tar.gz
1821
cd collector
1922
20-
# if an encryption file has been provided, copy it to this folder
21-
cp <some-path>/*_secret.key .
22-
2323
# go through the configuration file, set all parameters as suited
2424
edit collector.conf
2525

0 commit comments

Comments
 (0)