Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • YouTube Videos
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Agility
      • Book your Agile Fundamentals training
      • Book you Kanban workshop
      • Learn more about Agile
        • Agile Webspace
        • Everything Agile
          • The Agile Manifesto
          • Best Practices
          • Retro Recipes
        • Methodologies
          • The Scrum Framework
          • Kanban
          • Extreme Programming
        • Roles
          • The Product Owner
          • The Agile Coach
          • The Quality & UX Coach (QX)
    • >> Go to DataMiner Docs
  • DevOps
    • About the DevOps Program
    • Sign up for the DevOps Pogram
    • DataMiner DevOps Support
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
  • Downloads
  • Contact
    • Sales, Training & Certification
    • DataMiner Support
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Solutions
    • Deal Registration
  • >> Go to dataminer.services

Cassandra CronJob Query

68 views5 days agocassandra-reaper log file CassandraDB
2
Syarah Husna [DevOps Advocate]84 5 days ago 0 Comments

Hello All,

As background, we have been experiencing low disk space on our Cassandra server. As a temporary measure, we need to remove Cassandra Reaper log files located on the SDA2 disk.

Therefore, I would like to ask if anyone has experience or knowledge on how to implement a CronJob on the Cassandra server. The goal is to automate the removal of the largest log files in the Cassandra Reaper folder whenever disk usage reaches 80% or higher.

I am currently performing this cleanup manually, which is quite time-consuming. Automating this process using a CronJob would greatly improve efficiency.

If this is feasible, I would appreciate a detailed guideline on how to set it up.

Looking forward to your thoughts and suggestions on this matter.

Wale Oguntoyinbo [SLC] [DevOps Advocate] Answered question 5 days ago

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
0
Wale Oguntoyinbo [SLC] [DevOps Advocate]3.49K Posted 5 days ago 0 Comments

Since Reaper is the big culprit here, I will suggest first you reduce its logging or turn it off completely.

Setting up a cronjob is well documented. Here is how its done in Ubuntu for example.

Your cronjob needs to call a script that handles the clean-up. In your script you can implement the logic you stated e.g. check disk usage then delete file.  In the past when I did something similar I took a different approach, I had my cronjob running everyday and deleting log files older than x number of days. Just highlighting  here the flexibility that is possible.

Hope this helps.

Wale Oguntoyinbo [SLC] [DevOps Advocate] Edited answer 5 days ago
Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin