-
Notifications
You must be signed in to change notification settings - Fork 474
[O11y][Cassandra] Add documentation for Jolokia setup #9817
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
[O11y][Cassandra] Add documentation for Jolokia setup #9817
Conversation
🚀 Benchmarks reportTo see the full report comment with |
- Java Development Kit (JDK) 1.8 or later | ||
- Apache Cassandra 3.x/4.x (Adjust according to version) | ||
- Jolokia agent |
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.
- Java Development Kit (JDK) 1.8 or later | |
- Apache Cassandra 3.x/4.x (Adjust according to version) | |
- Jolokia agent | |
- Java Development Kit (JDK) 1.8 or later | |
- Apache Cassandra 3.x or 4.x (depending on your version) | |
- Jolokia agent JAR file |
|
||
1. Download the Jolokia JVM Agent: | ||
|
||
Obtain the latest Jolokia JVM agent `.jar` file from the [Jolokia official download page](https://repo1.maven.org/maven2/org/jolokia/jolokia-jvm/). |
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.
Obtain the latest Jolokia JVM agent `.jar` file from the [Jolokia official download page](https://repo1.maven.org/maven2/org/jolokia/jolokia-jvm/). | |
Visit the [Jolokia official download page](https://repo1.maven.org/maven2/org/jolokia/jolokia-jvm/) to obtain the latest version of the Jolokia JVM agent JAR file. Download the `jolokia-jvm-<version>-agent.jar` file. |
|
||
Obtain the latest Jolokia JVM agent `.jar` file from the [Jolokia official download page](https://repo1.maven.org/maven2/org/jolokia/jolokia-jvm/). | ||
|
||
2. Place the Jolokia Agent: |
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.
2. Place the Jolokia Agent: | |
2. Copy the Jolokia Agent to Cassandra's Library Directory: |
|
||
2. Place the Jolokia Agent: | ||
|
||
Copy the downloaded `.jar` file to a suitable location on the server where Cassandra is installed. |
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.
Copy the downloaded `.jar` file to a suitable location on the server where Cassandra is installed. | |
Copy the downloaded `jolokia-jvm-<version>-agent.jar` file to the Cassandra library directory on the server where Cassandra is installed. |
For example: | ||
|
||
```bash | ||
sudo cp jolokia-jvm-<version>-agent.jar /path/to/cassandra/lib/ |
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.
sudo cp jolokia-jvm-<version>-agent.jar /path/to/cassandra/lib/ | |
cp jolokia-jvm-<version>-agent.jar /path/to/cassandra/lib/ |
Don't use sudo by default. It totally depends on perms of /path/to/cassandra/lib/
that we don't know. If they face problem they will automatically add sudo themselves.
|
||
### Jolokia Setup | ||
|
||
To monitor Cassandra with Jolokia, need to set up the Jolokia JVM agent. |
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.
To monitor Cassandra with Jolokia, need to set up the Jolokia JVM agent. | |
Follow these steps to set up Jolokia for monitoring Apache Cassandra: |
4. Restart Cassandra: | ||
|
||
After configuring Cassandra with the Jolokia agent, restart the Cassandra service to apply the changes. |
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.
4. Restart Cassandra: | |
After configuring Cassandra with the Jolokia agent, restart the Cassandra service to apply the changes. | |
4. Restart Cassandra: | |
Restart the Apache Cassandra service to apply the changes made to the configuration. |
Note: | ||
- Restarting the Cassandra service will temporarily disrupt database connectivity. Dependent services may experience failures and should be designed to handle such interruptions gracefully. | ||
- Immediately after a restart, Cassandra's performance may be impacted due to cold caches and commit log replay. | ||
- Ensure no cluster maintenance tasks are in progress during the restart to prevent any unintended consequences. |
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.
Note: | |
- Restarting the Cassandra service will temporarily disrupt database connectivity. Dependent services may experience failures and should be designed to handle such interruptions gracefully. | |
- Immediately after a restart, Cassandra's performance may be impacted due to cold caches and commit log replay. | |
- Ensure no cluster maintenance tasks are in progress during the restart to prevent any unintended consequences. | |
> Note: | |
- Restarting the Apache Cassandra service will temporarily disrupt database connectivity. Ensure that dependent services are designed to handle such interruptions gracefully. | |
- Immediately after a restart, Cassandra's performance may be impacted due to cold caches and commit log replay. Allow some time for the system to stabilize. | |
- Before restarting Cassandra, ensure that no cluster maintenance tasks are in progress to prevent any unintended consequences. |
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.
Please note the exact steps will vary based on the installation type. For example: if cassandra is installed via kkubernetes, the steps above could be different,.
We could mention, this is representative example only and can provide minimal guideline on restart scenario.
- Restarting the Cassandra service will temporarily disrupt database connectivity. Dependent services may experience failures and should be designed to handle such interruptions gracefully. | ||
- Immediately after a restart, Cassandra's performance may be impacted due to cold caches and commit log replay. | ||
- Ensure no cluster maintenance tasks are in progress during the restart to prevent any unintended consequences. | ||
|
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.
Do you think we add something like:
Verifying the setup
After restarting Cassandra, you can verify that Jolokia is properly set up by accessing the Jolokia endpoint:
http://<cassandra-host>:7777/jolokia/
Replace with the hostname or IP address of your Cassandra server.
If the setup is successful, you should see a JSON response containing information about the available Jolokia operations and the Cassandra instance.
You can now use Jolokia to monitor and manage your Apache Cassandra cluster.
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.
Agree, this step will be useful.
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.
Updated, thanks!
packages/cassandra/changelog.yml
Outdated
@@ -1,4 +1,9 @@ | |||
# newer versions go on top | |||
- version: "1.12.2" | |||
changes: | |||
- description: Add documentation for Jolokia setup in the README. |
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.
- description: Add documentation for Jolokia setup in the README. | |
- description: Add documentation for setting up Jolokia to monitor Apache Cassandra in the README file. |
Left some comments to make the tone of the doc consistent. Also suggested some improvements and clarified some parts where paths need to be changed. Please check. |
Addressed, thanks! 🙌 |
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.
LGTM
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.
Left one comment. Else, LGTM.
Co-authored-by: subham sarkar <sarkar.subhams2@gmail.com>
💚 Build Succeeded
History
cc @harnish-elastic |
|
Package cassandra - 1.12.2 containing this change is available at https://epr.elastic.co/search?package=cassandra |
Proposed commit message
Added detailed instructions for Jolokia setup in Apache Cassandra README.
Checklist
changelog.yml
file.Related issues