XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: Tool/nodetool
    • Labels:

      Description

      Scheduled tasks in a management process operate some task on a periodic or scheduled basis (e.g. periodic cleanups, compactions, flushes, backups etc…). We propose pluggable scheduled jobs which allow users to achieve simple yet powerful operations activities that are frequently required in Cassandra. Basically, these are cron jobs.

      Proposed Scope

      • GET /v1/scheduled/node: Shows the scheduled tasks that run on the local host by the sidecar. These are determined via the configuration of the management process.
      • Cleanup of tables (nodetool cleanup) in Cassandra will be implemented as part of this JIRA. This maintenance activity is an important task when your environment is prone to lose nodes and move nodes all the time. Having cleanup activity scheduled on a regular basis helps to maintain the fidelity of the database.

       

      # View scheduled tasks on a node
      curl -i -XGET 'localhost:5000/v1/scheduled/node'  
      HTTP/1.0 200 OK
      {
        "tasks": {
          "cleanup": {
            "exclude_kfs""*system*",
            "cron_schedule""1 12 * * *"
          }
        }
      }
      

       

      Reference from CIP-1: Scheduled Management

        Attachments

          Activity

            People

            • Assignee:
              vinaykumarcse Vinay Chella
              Reporter:
              vinaykumarcse Vinay Chella
              Authors:
              Vinay Chella
              Reviewers:
              Chris Lohfink
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated: