... | @@ -63,6 +63,36 @@ Go to `Services`->`Machines` and click `Add New Machine`, and add `agent-kea-ha1 |
... | @@ -63,6 +63,36 @@ Go to `Services`->`Machines` and click `Add New Machine`, and add `agent-kea-ha1 |
|
|
|
|
|
You can now inspect the HA status of those servers. Note the difference between the status between two partners.
|
|
You can now inspect the HA status of those servers. Note the difference between the status between two partners.
|
|
|
|
|
|
|
|
Optionally, you may want to connect to simulate one of the Kea servers crashing and observe how the surviving Kea server detects the problem and how Stork provides extra insight into what's happening.
|
|
|
|
|
|
|
|
You may open a new console. Make sure you are in the Stork directory where the demo is being run, then connect to the docker machine and use kill command to abruptly stop kea.
|
|
|
|
|
|
|
|
```
|
|
|
|
# Make sure this is the directory where you run `rake docker_up` from.
|
|
|
|
cd ~/devel/stork
|
|
|
|
|
|
|
|
# Connect to the container
|
|
|
|
docker-compose exec agent-kea-ha2 /bin/bash
|
|
|
|
|
|
|
|
# See that the kea process is running. The kea-dhcp4 should have low value of process id.
|
|
|
|
# In this example it was 10.
|
|
|
|
ps aux | grep kea-dhcp4
|
|
|
|
root 10 0.0 1.0 168576 20872 ? S 09:28 0:01 /usr/sbin/kea-dhcp4 -c /etc/kea/kea-dhcp4.conf
|
|
|
|
root 295 0.0 0.0 11464 1000 pts/0 S+ 10:31 0:00 grep --color=auto kea-dhcp4
|
|
|
|
|
|
|
|
# Now kill the process
|
|
|
|
kill 10
|
|
|
|
```
|
|
|
|
|
|
|
|
After couple seconds Stork will report a problem. Observe how Kea goes through various stages.
|
|
|
|
|
|
|
|
To restart Kea, use the following command:
|
|
|
|
```
|
|
|
|
/usr/sbin/kea-dhcp4 -c /etc/kea/kea-dhcp4.conf &
|
|
|
|
```
|
|
|
|
|
|
|
|
You can now logout from the docker image using `exit` or by pressing ctrl-d.
|
|
|
|
|
|
9. **DHCPv6 support**.
|
|
9. **DHCPv6 support**.
|
|
|
|
|
|
Stork fully supports IPv6 from the day one. Add another machine called `agent-kea6`. Notice the IPv6 subnet and several pools.
|
|
Stork fully supports IPv6 from the day one. Add another machine called `agent-kea6`. Notice the IPv6 subnet and several pools.
|
... | | ... | |