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

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

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["iid"] %> <%= entry["pxname"] %> <%= entry["status"] %> <%= entry["algo"] %>

Servers

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

PostgreSQL

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