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: Core
    • 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

        Hide
        Brandon Williams added a comment -

        Committed w/import moved.

        Show
        Brandon Williams added a comment - Committed w/import moved.
        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).
        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
        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.

          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