Recycled Cloud HA handler

This service supervises the various components of the Recycled Cloud's High Availability infrastruture. Documentation and source code can be found on our software forge.


Handler

Local instance: <%= otp_app %> v<%= version %> (<%= env %>) running on <%= hostname %>

<%= for instance <- handler_status do %> <% end %>
Instance Version Env Status Uptime
<%= instance.node %> <%= instance.version %> <%= instance.env %> <%= instance.status %> <%= instance.uptime %>m

HAProxy

Frontends

<%= for entry <- Map.get(haproxy_stats, "Frontend") do %> <% end %>
Name Status Bytes in Bytes out
<%= entry["pxname"] %> <%= entry["status"] %> <%= entry["bin"] %> <%= entry["bout"] %>

Backends

<%= for entry <- Map.get(haproxy_stats, "Backend") do %> <% end %>
Name Status algo
<%= entry["pxname"] %> <%= entry["status"] %> <%= entry["algo"] %>

Servers

<%= for entry <- Map.get(haproxy_stats, "Server") do %> <% end %>
Name Status Mode Address
<%= entry["pxname"] %>/<%= entry["svname"] %> <%= entry["status"] %> <%= entry["mode"] %> <%= entry["addr"] %>

PostgreSQL

<%= for entry <- pgsql_status do %> <% end %>
Hostname Version Status Operation
<%= entry[:hostname] %> <%= entry[:version] %> <%= entry[:status] %> <%= entry[:mode] %>

DRBD

<%= for entry <- drbd_status do %> <% end %>
Hostname Version Status Operation
<%= entry[:hostname] %> <%= entry[:version] %> <%= entry[:status] %> <%= entry[:mode] %>