Cassandra
  1. Cassandra
  2. CASSANDRA-4790

Allow property override of available processors value

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Fix Version/s: 1.1.8, 1.2.0 rc1
    • Component/s: None
    • Labels:
      None

      Description

      Currently, many critical thread pools are sized according to the number of available processors i.e. Runtime.getRuntime.availableProcessors() (See StageManager.java)

      In a multi-instance deployment, multiple Cassandra instances will independently assume that all processors are available to it; there should be a mechanism to specify a smaller set of processors (and perhaps have affinity).

      1. 4790.txt
        13 kB
        Brandon Williams

        Activity

        Ahmed Bashir created issue -
        Hide
        Jonathan Ellis added a comment -

        Adding a -D option to cassandra-env.sh would be cleanest.

        Show
        Jonathan Ellis added a comment - Adding a -D option to cassandra-env.sh would be cleanest.
        Jonathan Ellis made changes -
        Field Original Value New Value
        Issue Type Improvement [ 4 ] New Feature [ 2 ]
        Fix Version/s 1.1.8 [ 12323574 ]
        Affects Version/s 1.1.4 [ 12322490 ]
        Priority Major [ 3 ] Minor [ 4 ]
        Brandon Williams made changes -
        Assignee Brandon Williams [ brandon.williams ]
        Hide
        Brandon Williams added a comment -

        Patch to override with -Dcassandra.available_processors

        Show
        Brandon Williams added a comment - Patch to override with -Dcassandra.available_processors
        Brandon Williams made changes -
        Attachment 4790.txt [ 12555846 ]
        Brandon Williams made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Reviewer iamaleksey
        Hide
        Aleksey Yeschenko added a comment -

        lgtm, +1 (piconit - IDEA's auto-import misplaced FBUtilities import in StageManager).

        Show
        Aleksey Yeschenko added a comment - lgtm, +1 (piconit - IDEA's auto-import misplaced FBUtilities import in StageManager).
        Brandon Williams made changes -
        Fix Version/s 1.2.0 rc1 [ 12323481 ]
        Hide
        Brandon Williams added a comment -

        Committed w/import moved.

        Show
        Brandon Williams added a comment - Committed w/import moved.
        Brandon Williams made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Gavin made changes -
        Workflow no-reopen-closed, patch-avail [ 12729163 ] patch-available, re-open possible [ 12753345 ]
        Gavin made changes -
        Workflow patch-available, re-open possible [ 12753345 ] reopen-resolved, no closed status, patch-avail, testing [ 12756179 ]
        Aleksey Yeschenko made changes -
        Component/s Core [ 12312978 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Patch Available Patch Available
        54d 1h 34m 1 Brandon Williams 03/Dec/12 23:06
        Patch Available Patch Available Resolved Resolved
        1d 21h 48m 1 Brandon Williams 05/Dec/12 20:54

          People

          • Assignee:
            Brandon Williams
            Reporter:
            Ahmed Bashir
            Reviewer:
            Aleksey Yeschenko
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development