-
Goal: create a playground for experimenting with different IPsec settings between 3 sites: 2 Mikrotiks and 1 StrongSwan node.
-
Requirements:
- GNS3
- VirtualBox (VMware or nested kvm would be even better)
- Questions:
- How does Docker Swarm behave in the different parts of a cluster during a network partition? Will it recover by itself when the partition is gone?
- What happens to a single-instance service when that node is getting partitioned off?
- Requirements: Vagrant, VirtualBox
- Questions:
- How does Consul behave in the different parts of a cluster during a network partition? Will it recover by itself when the partition is gone?
- Would Consul change the Raft Leader if the current leader won't be able to communicate with some nodes while some other node will?
- How does Consul perform in a lossy network?
- Requirements: Vagrant, VirtualBox
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
Vagrant.configure("2") do |config| | |
config.vm.box = "debian/stretch64" | |
config.vm.provider "virtualbox" do |vb| | |
vb.memory = "512" | |
end | |
config.vm.provision "docker" do |d| | |
consul_config = %( | |
{ |
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
""" | |
First attempt: doesn't work. | |
Output: | |
,,,,,,,,,,,,,,,,,,,,,,,,,,,<snip> | |
""" | |
import sys | |
from threading import Thread | |
from time import sleep |
I hereby claim:
- I am kostyaesmukov on github.
- I am kostyaesmukov (https://keybase.io/kostyaesmukov) on keybase.
- I have a public key ASClWOseyvvMsrBslvH4oRiafYGPLbKqZxmMVCvE1yb4qQo
To claim this, I am signing this object:
>>> import struct
>>> pd = lambda x: format(struct.unpack('!Q', struct.pack('!d', x))[0], '064b')
>>> pd(180.00000000000003)
# sign (1 bit) | exponent (11 bit) | fraction (52 bit)
#\/ \/
'0100000001100110100000000000000000000000000000000000000000000001'
>>> pd(180)
'0100000001100110100000000000000000000000000000000000000000000000'
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
iperf -s -p 5201 -V | |
iperf -c ::1 -p 5202 -t 10 -d --format Mbits -V | |
iperf3 -s | |
iperf3 -c ::1 -p 5202 -i 1 -t 10 | |
socat tcp6-listen:5202 tcp6-connect:'[::1]:5201' | |
https://github.com/BlueDragonX/go-proxy-example | |
./go-proxy-example -listen='[::1]:5202' -backend='[::1]:5201' |
NewerOlder