Allow routing allocations:
curl -XPUT localhost:9200/_cluster/settings -d '{
"transient" : {
"cluster.routing.allocation.enable" : "all"
}
}'Allow routing allocations:
curl -XPUT localhost:9200/_cluster/settings -d '{
"transient" : {
"cluster.routing.allocation.enable" : "all"
}
}'| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "net" | |
| "net/mail" | |
| "net/smtp" | |
| "crypto/tls" | |
| ) |
| import SoftLayer.API | |
| from pprint import pprint as pp | |
| apiUsername = 'set me' | |
| apiKey = 'set me' | |
| client = SoftLayer.Client( | |
| username=apiUsername, | |
| api_key=apiKey, | |
| ) |
| <?php | |
| /** | |
| * Retrieve metric data for a single server. | |
| * | |
| * This example shows how to use the SoftLayer API to retrieve metric data for | |
| * Advanced Monitoring on a single hardware or virtual guest server instance. | |
| * | |
| * We will call the SoftLayer API to retrieve the monitoring agents, | |
| * configuration template, and configuration values for a server instance. | |
| * Then we will demonstrate how to find definitions that you have enabled for |
| from pprint import pprint as pp | |
| import SoftLayer | |
| client = SoftLayer.Client() | |
| mgr = SoftLayer.CCIManager(client) | |
| serverId = 1234 | |
| mask = ('mask[monitoringAgents[id,name,statusName]]') | |
| server = mgr.get_instance(serverId, mask=mask) | |
| pp(server) |
| import SoftLayer | |
| apiUser = (api username) | |
| apiKey = (api key) | |
| client=SoftLayer.Client(username=apiUser,api_key=apiKey) | |
| acctalarms=client['Account'].getActiveAlarms() | |
| for alarm in acctalarms: | |
| hostname = client['Monitoring_Robot'].getObject(id=alarm['robotId'],mask="mask[softwareComponent[virtualGuest,hardware]]") |
| // go build -ldflags "-s -w" -o index.cgi cgi.go | |
| package main | |
| import ( | |
| "fmt" | |
| "net/http" | |
| "net/http/cgi" | |
| ) |
| <?php | |
| /** | |
| * Add new configuration for a monitoring agent. | |
| * | |
| * This example shows how to use the SoftLayer API to add new configuration for a monitoring agent for the hardware or virtual guest | |
| * server instance. | |
| * | |
| * @license <http://sldn.softlayer.com/wiki/index.php/License> | |
| * @author SoftLayer Technologies, Inc. <[email protected]> | |
| */ |
| import SoftLayer.API | |
| from pprint import pprint as pp | |
| apiUsername = '' | |
| apiKey = '' | |
| client = SoftLayer.Client( | |
| username=apiUsername, | |
| api_key=apiKey, | |
| ) |