<commit_before>################################################
#
#              Generated by Chef
#
################################################

Listen <%="#{node[:bcpc][:graphite][:ip]}"%>:<%="#{node[:bcpc][:graphite][:web_port]}"%>
<% unless node[:bcpc][:graphite][:ip] == node[:bcpc][:management][:vip] -%>
Listen <%="#{node[:bcpc][:management][:vip]}"%>:<%="#{node[:bcpc][:graphite][:web_port]}"%>
<% end -%>
NameVirtualHost <%="#{node[:bcpc][:management][:ip]}"%>:443


<% unless node[:bcpc][:graphite][:ip] == node[:bcpc][:management][:vip] -%>
<VirtualHost <%="#{node[:bcpc][:graphite][:ip]}"%>:<%="#{node[:bcpc][:graphite][:web_port]}"%> <%="#{node[:bcpc][:management][:vip]}"%>:443 <%="#{node[:bcpc][:management][:ip]}"%>:<%="#{node[:bcpc][:graphite][:web_port]}"%>>
<% else -%>
<VirtualHost <%="#{node[:bcpc][:graphite][:ip]}"%>:<%="#{node[:bcpc][:graphite][:web_port]}"%> <%="#{node[:bcpc][:management][:vip]}"%>:443  >
<% end -%>

    ServerName "graphite.<%="#{node[:bcpc][:domain_name]}"%>"
    DocumentRoot "/opt/graphite/webapp"

    # I've found that an equal number of processes & threads tends
    # to show the best performance for Graphite (ymmv).
    WSGIDaemonProcess graphite processes=5 threads=5 user=www-data group=www-data inactivity-timeout=120
    WSGIProcessGroup graphite
    WSGIApplicationGroup www-data
    WSGIImportScript /opt/graphite/conf/graphite.wsgi process-group=graphite application-group=www-data

    WSGIScriptAlias / /opt/graphite/conf/graphite.wsgi
    <Directory /opt/graphite/conf/>
      <IfVersion < 2.4>
        Order deny,allow
        Allow from all
      </IfVersion>
      <IfVersion >= 2.4><commit_msg>graphite should be listened on ip not vip<commit_after>################################################
#
#              Generated by Chef
#
################################################

Listen <%="#{node[:bcpc][:graphite][:ip]}"%>:<%="#{node[:bcpc][:graphite][:web_port]}"%>
<% unless node[:bcpc][:graphite][:ip] == node[:bcpc][:management][:ip] -%>
Listen <%="#{node[:bcpc][:management][:ip]}"%>:<%="#{node[:bcpc][:graphite][:web_port]}"%>
<% end -%>
NameVirtualHost <%="#{node[:bcpc][:management][:ip]}"%>:443


<% unless node[:bcpc][:graphite][:ip] == node[:bcpc][:management][:ip] -%>
<VirtualHost <%="#{node[:bcpc][:graphite][:ip]}"%>:<%="#{node[:bcpc][:graphite][:web_port]}"%> <%="#{node[:bcpc][:management][:ip]}"%>:443 <%="#{node[:bcpc][:management][:ip]}"%>:<%="#{node[:bcpc][:graphite][:web_port]}"%>>
<% else -%>
<VirtualHost <%="#{node[:bcpc][:graphite][:ip]}"%>:<%="#{node[:bcpc][:graphite][:web_port]}"%> <%="#{node[:bcpc][:management][:ip]}"%>:443  >
<% end -%>

    ServerName "graphite.<%="#{node[:bcpc][:domain_name]}"%>"
    DocumentRoot "/opt/graphite/webapp"

    # I've found that an equal number of processes & threads tends
    # to show the best performance for Graphite (ymmv).
    WSGIDaemonProcess graphite processes=5 threads=5 user=www-data group=www-data inactivity-timeout=120
    WSGIProcessGroup graphite
    WSGIApplicationGroup www-data
    WSGIImportScript /opt/graphite/conf/graphite.wsgi process-group=graphite application-group=www-data

    WSGIScriptAlias / /opt/graphite/conf/graphite.wsgi
    <Directory /opt/graphite/conf/>
      <IfVersion < 2.4>
        Order deny,allow
        Allow from all
      </IfVersion>
      <IfVersion >= 2.4>
{'fraction_non_alphanumeric': 0.29848078641644327, 'fraction_numerical': 0.010723860589812333, 'mean_word_length': 6.237068965517241, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 55, 'https://': 0, 'lorem ipsum': 0, 'www.': 8, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5830142', 'n_tokens_mistral': 1260, 'n_tokens_neox': 1189, 'n_words': 160}