Last active
August 29, 2015 14:19
-
-
Save nickchappell/2af2e574b597212f3f1a to your computer and use it in GitHub Desktop.
chi-prod-collector-2c.nr-ops.net F5 setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Create the node: | |
create /ltm node chi-prod-collector-2c.nr-ops.net { address 10.1.23.26 } | |
#Create the 2 pool members, 1 for each JVM: | |
create /ltm pool collector-157 { members replace-all-with { chi-prod-collector-2c.nr-ops.net:8081 { connection-limit 20000 } } monitor nr-http-status-mongrel } | |
create /ltm pool collector-158 { members replace-all-with { chi-prod-collector-2c.nr-ops.net:8091 { connection-limit 20000 } } monitor nr-http-status-mongrel } | |
#Create the virtual servers: | |
#collector-157 HTTP: | |
create /ltm virtual collector-157.newrelic.com-http { destination 50.31.164.178:http ip-protocol tcp mask 255.255.255.255 pool collector-157 profiles replace-all-with { nr-collector-http { } nr-collector-tcp { context clientside } nr-oneconnect { } nr-serverside-tcp { context serverside } } rules { NR-Insert-Request-Start NR-Insert-Proto-http NR-Collector-Method-Route-Percent NR-Maintenance-Collector } source 0.0.0.0/0 source-address-translation { pool traffic-group-1_chi-prod-internal_snat type snat } } | |
#collector-157 HTTPS: | |
create /ltm virtual collector-157.newrelic.com-https { destination 50.31.164.178:https ip-protocol tcp mask 255.255.255.255 pool collector-157 profiles replace-all-with { nr-collector-clientssl { context clientside } nr-collector-http { } nr-collector-tcp { context clientside } nr-oneconnect { } nr-serverside-tcp { context serverside } } rules { NR-Insert-Request-Start NR-Insert-Proto-https NR-Collector-Method-Route-Percent NR-Maintenance-Collector } source 0.0.0.0/0 source-address-translation { pool traffic-group-1_chi-prod-internal_snat type snat } } | |
#collector-158 HTTP: | |
create /ltm virtual collector-158.newrelic.com-http { destination 50.31.164.179:http ip-protocol tcp mask 255.255.255.255 pool collector-158 profiles replace-all-with { nr-collector-http { } nr-collector-tcp { context clientside } nr-oneconnect { } nr-serverside-tcp { context serverside } } rules { NR-Insert-Request-Start NR-Insert-Proto-http NR-Collector-Method-Route-Percent NR-Maintenance-Collector } source 0.0.0.0/0 source-address-translation { pool traffic-group-2_chi-prod-internal_snat type snat } } | |
#collector-157 HTTPS: | |
create /ltm virtual collector-158.newrelic.com-https { destination 50.31.164.179:https ip-protocol tcp mask 255.255.255.255 pool collector-158 profiles replace-all-with { nr-collector-clientssl { context clientside } nr-collector-http { } nr-collector-tcp { context clientside } nr-oneconnect { } nr-serverside-tcp { context serverside } } rules { NR-Insert-Request-Start NR-Insert-Proto-https NR-Collector-Method-Route-Percent NR-Maintenance-Collector } source 0.0.0.0/0 source-address-translation { pool traffic-group-2_chi-prod-internal_snat type snat } } | |
#Put the virtual addresses in the same traffic group as the other collector VIPs: | |
modify /ltm virtual-address 50.31.164.178 { traffic-group traffic-group-1 } | |
modify /ltm virtual-address 50.31.164.179 { traffic-group traffic-group-2 } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
These aren't the IPs you're looking for:
Should be