lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Cline <aaron.cl...@gmail.com>
Subject Auto Perform Cluster Suggestions
Date Wed, 30 Jan 2019 16:02:35 GMT
Hello:

I'm running Solr Cloud 7.6.0.  When I add a node to an existing cluster
that has some collections and replicas, I end up with several suggested
actions under the Suggestions api endpoint.  Is there  some setting I can
turn on to just make these automatically happen when nodes join or leave?

It seems like there should just be some setting that I haven't been able to
find.  Here's my autoscale config at the moment:

{
  "responseHeader": {
    "status": 0,
    "QTime": 1
  },
  "cluster-preferences": [
    {
      "minimize": "cores"
    },
    {
      "maximize": "freedisk",
      "precision": 2
    },
    {
      "minimize": "sysLoadAvg",
      "precision": 2
    }
  ],
  "cluster-policy": [
    {
      "replica": "<2",
      "shard": "#EACH",
      "node": "#ANY"
    }
  ],
  "triggers": {
    ".auto_add_replicas": {
      "name": ".auto_add_replicas",
      "event": "nodeLost",
      "waitFor": 180,
      "enabled": true,
      "actions": [
        {
          "name": "auto_add_replicas_plan",
          "class": "solr.AutoAddReplicasPlanAction"
        },
        {
          "name": "execute_plan",
          "class": "solr.ExecutePlanAction"
        }
      ]
    },
    ".scheduled_maintenance": {
      "name": ".scheduled_maintenance",
      "event": "scheduled",
      "startTime": "NOW",
      "every": "+1DAY",
      "enabled": true,
      "actions": [
        {
          "name": "inactive_shard_plan",
          "class": "solr.InactiveShardPlanAction"
        },
        {
          "name": "execute_plan",
          "class": "solr.ExecutePlanAction"
        }
      ]
    },
    "node_added_trigger": {
      "event": "nodeAdded",
      "waitFor": 30,
      "enabled": true,
      "actions": [
        {
          "name": "compute_plan",
          "class": "solr.ComputePlanAction",
          "collections":
"blc-catalog0,blc-catalog1,blc-orders0,blc-orders1,blc-customers0,blc-customers1,blc-fulfillment-orders0,blc-fulfillment-orders1"
        },
        {
          "name": "execute_plan",
          "class": "solr.ExecutePlanAction"
        }
      ]
    }
  },
  "listeners": {
    ".auto_add_replicas.system": {
      "beforeAction": [],
      "afterAction": [],
      "stage": [
        "STARTED",
        "ABORTED",
        "SUCCEEDED",
        "FAILED",
        "BEFORE_ACTION",
        "AFTER_ACTION",
        "IGNORED"
      ],
      "trigger": ".auto_add_replicas",
      "class": "org.apache.solr.cloud.autoscaling.SystemLogListener"
    },
    ".scheduled_maintenance.system": {
      "beforeAction": [],
      "afterAction": [],
      "stage": [
        "STARTED",
        "ABORTED",
        "SUCCEEDED",
        "FAILED",
        "BEFORE_ACTION",
        "AFTER_ACTION",
        "IGNORED"
      ],
      "trigger": ".scheduled_maintenance",
      "class": "org.apache.solr.cloud.autoscaling.SystemLogListener"
    },
    "node_added_trigger.system": {
      "beforeAction": [],
      "afterAction": [],
      "stage": [
        "STARTED",
        "ABORTED",
        "SUCCEEDED",
        "FAILED",
        "BEFORE_ACTION",
        "AFTER_ACTION",
        "IGNORED"
      ],
      "trigger": "node_added_trigger",
      "class": "org.apache.solr.cloud.autoscaling.SystemLogListener"
    }
  },
  "properties": {},
  "WARNING": "This response format is experimental.  It is likely to change
in the future."
}

Thank you your help.

Aaron

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message