-
Notifications
You must be signed in to change notification settings - Fork 54
Verification
PoolParty has baked in verification for your clouds. This way, you can test if your cloud deployment is working from within the same method used to start the clouds.
cloud :app_server do
verify do
ping 80
end
end
This will ping the remote host after everything else in your clouds.rb has run (ToDo: everything for one node or after everything for all nodes?) . If it fails, it will try to reconfigure (ToDo: what specifically is reconfigured or re-tried?) . If the reconfiguration fails again, something is probably wrong your clouds.rb recipe.
Currently, ping is the only verification baked in to PoolParty.
(ToDo: ping uses ICMP so it has no port; why does the above code have “ping 80”?)
(ToDo: if, in code above, :app_server
implies more than one machine, they are all pinged; good to emphasize; and what amount of delay is used to give a machine time to come up? after how long is the instance abandoned )
(ToDo: what about periodic verification for later repair? Should that be distinct from startup verification?)