Sha256: e014b862c8f6b717c25973bd3f5fde42e6e62ee8c32a9931257a7c40d2e6a771
Contents?: true
Size: 800 Bytes
Versions: 4
Compression:
Stored size: 800 Bytes
Contents
<p><%= pluralize(total_connections, "connection") %></p> <% if show_message %> <p> <%= link_to "Use connection pooling", "http://www.craigkerstiens.com/2014/05/22/on-connection-pooling/", target: "_blank" %> for better performance. <%= link_to "PgBouncer", "https://wiki.postgresql.org/wiki/PgBouncer", target: "_blank" %> is a solid option. </p> <% end %> <table class="table"> <thead> <tr> <th>Top Sources</th> <th>Connections</th> </tr> </thead> <tbody> <% PgHero.connection_sources.first(10).each do |source| %> <tr> <td><%= source["source"] %> <span class="text-muted"><%= source["ip"] %></span></td> <td style="width: 20%;"><%= number_with_delimiter(source["total_connections"]) %></td> </tr> <% end %> </tbody> </table>
Version data entries
4 entries across 4 versions & 1 rubygems