Monthly Archives: August 2012

Scripting the Zeus/Stingray API

So you are digging the Joyent API, you have your provisioning working with your Chef or Puppet Scripts. Here is a shell script you can use to add that new box to your Stingray load balancer. #!/bin/bash zxtm=localhost /opt/zeus/zxtm/bin/zcli << EOF Pool.addPool [“JoyentDemo”],[[“help.joyent.com:80″,”joyent.com:80″,”wiki.joyent.com:80″]] Pool.setLoadBalancingAlgorithm [“JoyentDemo”], roundrobin Pool.setPassiveMonitoring [“JoyentDemo”], 0 Pool.setMonitors [“JoyentDemo”], “Full HTTP” Pool.setKeepalive [“JoyentDemo”], […]

Posted in Foundations, Technology | Tagged as: , , , | Leave a comment