Skip to content

Instantly share code, notes, and snippets.

@KitaitiMakoto
Last active June 6, 2016 04:44
Show Gist options
  • Save KitaitiMakoto/877c975015c48907ad4b448438fb04c3 to your computer and use it in GitHub Desktop.
Save KitaitiMakoto/877c975015c48907ad4b448438fb04c3 to your computer and use it in GitHub Desktop.
<div class="highlight"><pre><span class="nt">&lt;source&gt;</span>
<span class="nb">type</span> ping_message
<span class="nb">data</span> ${hostname}
<span class="nb">tag</span> ping
<span class="nb">interval</span> <span class="m">60</span>
<span class="nt">&lt;/source&gt;</span>
<span class="nt">&lt;match</span> <span class="s">app.**,ping</span><span class="nt">&gt;</span>
<span class="nb">type</span> forward
<span class="nt">&lt;server&gt;</span>
<span class="nb">name</span> active-aggregator-server
<span class="nb">host</span> <span class="m">192.168.100.120</span>
<span class="nt">&lt;/server&gt;</span>
<span class="nt">&lt;server&gt;</span>
<span class="nb">name</span> backup-aggregator-server
<span class="nb">host</span> <span class="m">192.168.100.121</span>
<span class="nb">standby</span>
&lt;/server&gt;
<span class="nt">&lt;/match&gt;</span>
<span class="nt">&lt;source&gt;</span>
<span class="nb">type</span> forward
<span class="nb">port</span> <span class="m">24224</span>
<span class="nb">bind</span> <span class="m">0.0.0.0</span>
<span class="nt">&lt;/source&gt;</span>
<span class="nt">&lt;match</span> <span class="s">ping</span><span class="nt">&gt;</span>
<span class="nb">type</span> forward
<span class="nt">&lt;server&gt;</span>
<span class="nb">name</span> watcher-server
<span class="nb">host</span> <span class="m">192.168.100.140</span>
<span class="nt">&lt;/server&gt;</span>
<span class="nt">&lt;/match&gt;</span>
</pre></div>
<source>
type ping_message
data ${hostname}
tag ping
interval 60
</source>
<match app.**,ping>
type forward
<server>
name active-aggregator-server
host 192.168.100.120
</server>
<server>
name backup-aggregator-server
host 192.168.100.121
standby
</server>
</match>
<source>
type forward
port 24224
bind 0.0.0.0
</source>
<match ping>
type forward
<server>
name watcher-server
host 192.168.100.140
</server>
</match>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment