Configure an HA Pair on GCP
Below is a sample configuration of an HA pair on GCP.
In this example, the IPs 104.196.215.97 and 35.211.156.206 are configured as the front end IP addresses of the external load balancer. The IPs 10.79.3.79 and 10.79.4.79 are configured as the front end IP addresses of the internal load balancer. These IPs can be added with the add-hip-ip command in the network-interface configuration element.
Under system-config, enable the use-sibling-core-datapath parameter to utilize all virtual CPUs.
http-server
name s0p0_GCPHealthCheck_FEIP1
realm access
ip-address 104.196.215.97
http-port 8888
http-server
name s0p0_GCPHealthCheck_FEIP2
realm access
ip-address 35.211.156.206
http-port 8888
http-server
name s1p0_GCPHealthCheck
realm core
ip-address 10.79.4.79
http-port 8888
http-server
name s0p0_GCPHealthCheck
realm access
ip-address 10.79.3.79
http-port 8888
local-policy
from-address 3.90.177.223
to-address 104.196.215.97
policy-attribute
next-hop 10.79.7.100
realm core
local-policy
from-address 3.90.177.223
to-address 35.211.156.206
policy-attribute
next-hop 10.79.7.100
realm core
media-manager
network-interface
name s0p0
ip-address 10.79.3.79
pri-utility-addr 10.79.3.94
sec-utility-addr 10.79.3.95
netmask 255.255.255.0
gateway 10.79.3.1
hip-ip-list 10.79.3.79
104.196.215.97
35.211.156.206
icmp-address 10.79.3.79
network-interface
name s1p0
ip-address 10.79.4.79
pri-utility-addr 10.79.4.92
sec-utility-addr 10.79.4.93
netmask 255.255.255.0
gateway 10.79.4.1
hip-ip-list 10.79.4.79
icmp-address 10.79.4.79
network-interface
name wancom1
pri-utility-addr 10.79.1.61
sec-utility-addr 10.79.1.62
netmask 255.255.255.0
phy-interface
name s0p0
operation-type Media
phy-interface
name s1p0
operation-type Media
slot 1
phy-interface
name wancom1
port 1
duplex-mode
speed
wancom-health-score 8
realm-config
identifier access
network-interfaces s0p0:0.4
realm-config
identifier access1
addr-prefix 35.211.156.206
network-interfaces s0p0:0
realm-config
identifier access2
addr-prefix 104.196.215.97
network-interfaces s0p0:0
realm-config
identifier core
network-interfaces s1p0:0.4
redundancy-config
peer
name ha-sbc0
type Primary
destination
address 10.79.1.61:9090
network-interface wancom1:0
peer
name ha-sbc1
type Secondary
destination
address 10.79.1.62:9090
network-interface wancom1:0
session-router
sip-config
sip-interface
realm-id access1
sip-port
address 35.211.156.206
sip-interface
realm-id access2
sip-port
address 104.196.215.97
sip-interface
realm-id core
sip-port
address 10.79.4.79
steering-pool
ip-address 10.79.3.79
start-port 20000
end-port 60000
realm-id access
steering-pool
ip-address 10.79.4.79
start-port 20000
end-port 60000
realm-id core
steering-pool
ip-address 104.196.215.97
start-port 20000
end-port 60000
realm-id access2
steering-pool
ip-address 35.211.156.206
start-port 20000
end-port 60000
realm-id access1
system-config
transcoding-cores 1
use-sibling-core-datapath enabled