Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-19339

Make system_views.thread_pools mutable for core_pool_size and max_pool_size

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Patch Available
    • Normal
    • Resolution: Unresolved
    • 5.x
    • Feature/Virtual Tables
    • None
    • Operability
    • Normal
    • All
    • None
    • Hide

      CI

      Show
      CI

    Description

      In CASSANDRA-19289, we added core_pool_size, max_pool_size and max_tasks_queued to the output of system_views.thread_pools. From operational perspective, if an operator looks into this table, it would be very handy if she is able to change these pool parameters directly on that table instead of setting that up via JMX and respective attributes / setters, to avoid context switching / not leaving shell. It would look like:

      update system_views.thread_pools SET core_pool_size = 4, max_pool_size = 4 WHERE name = 'SecondaryIndexExecutor';
      

      From the implementation point of view, this is possible to do as we have AbstractMutableVirtualTable however we would probably need to introduce some simple register for created thread pools as vtable is currently based on metrics through which executors themselves are not accessible to call setCorePoolSize or similar.

      Attachments

        Issue Links

          Activity

            People

              smiklosovic Stefan Miklosovic
              smiklosovic Stefan Miklosovic
              Stefan Miklosovic
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m