Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor save/restore process #1106

Closed
crioto opened this issue Oct 25, 2018 · 4 comments
Closed

Refactor save/restore process #1106

crioto opened this issue Oct 25, 2018 · 4 comments
Assignees

Comments

@crioto
Copy link
Member

crioto commented Oct 25, 2018

Current implementation of instances save and restore is inefficient and need to be rewritten in order to extend it to support YAML format and handle situation with broken environments.

@crioto crioto self-assigned this Oct 25, 2018
crioto added a commit that referenced this issue Oct 29, 2018
* Support of YAML dump files (#1105)
* Refactored save/restore subsystem (#1106)
@crioto crioto mentioned this issue Oct 29, 2018
@crioto
Copy link
Member Author

crioto commented Nov 1, 2018

Conflicts with old file format

@kurmanbekova6
Copy link

Prod peer:

root@subutai:/home/subutai# p2p debug
Version: 8.0.1+20181026081036 Build: 8.0.1
Uptime: 74 h 25 m 59 s
Number of gouroutines: 40
PMTU: Disabled
Bootstrap nodes information:
  62.138.0.225:6881 Rx: 310332201 Tx: 5534670 Version: 8.0.2 Packet version: 20005
Instances information:
Hash: swarm-70a99a31-a067-4c5a-a30b-3a145d149025
ID: e5065a0f-dd8b-11e8-831b-d8cb8a37cf4b
UDP Port: 58451
Network interfaces: 192.168.88.52 
P2P Interface p2p1, HW Addr: 06:81:20:20:6e:55, IP: 10.176.213.1
Proxies: 62.138.0.66:40622/20000 85.93.91.135:40622/20054 
Peers:
	--- e975f505-dd8b-11e8-8438-d8cb8a37cf4b ---
	States: CONNECTED | CONNECTED
	Network: 10.176.213.254 06:c4:f0:3c:d2:bb
	Endpoint: 172.16.0.152:58779
	All Endpoints: 172.16.0.152:58779 
	Endpoints pool: 172.16.0.152:58779 192.168.122.1:58779 192.168.57.1:58779 192.168.105.1:58779 31.192.255.109:58779 85.93.91.135:20122 62.138.0.66:20025 
	--- End of e975f505-dd8b-11e8-8438-d8cb8a37cf4b ---
Hash: swarm-365a86e0-0ce9-4dc3-9ba6-877bd4e5d142
ID: e0b92053-dd8b-11e8-819b-d8cb8a37cf4b
UDP Port: 34463
Network interfaces: 192.168.88.52 
P2P Interface p2p2, HW Addr: 06:9c:20:47:a1:af, IP: 10.195.84.1
Proxies: 62.138.0.66:40622/20033 85.93.91.135:40622/20128 
Peers:
	--- 6b81809c-dd7a-11e8-83d1-d8cb8a37cf4b ---
	States: CONNECTED | CONNECTED
	Network: 10.195.84.252 06:04:52:e3:23:ca
	Endpoint: 62.138.16.154:60097
	All Endpoints: 62.138.16.154:60097 85.93.91.135:20056 62.138.0.66:20128 
	Endpoints pool: 62.138.16.154:60097 85.93.91.135:20056 62.138.0.66:20128 
	--- End of 6b81809c-dd7a-11e8-83d1-d8cb8a37cf4b ---
Hash: swarm-79424ee5-434d-433e-b18f-e8560431ca66
ID: e924c966-dd8b-11e8-89af-d8cb8a37cf4b
UDP Port: 43396
Network interfaces: 192.168.88.52 
P2P Interface p2p7, HW Addr: 06:71:66:1a:ea:58, IP: 10.250.75.1
Proxies: 62.138.0.66:40622/20057 85.93.91.135:40622/20135 
Peers:
	--- 744c0491-dd7a-11e8-8aa1-d8cb8a37cf4b ---
	States: CONNECTED | CONNECTED
	Network: 10.250.75.2 06:93:aa:ad:84:d9
	Endpoint: 62.138.16.134:35590
	All Endpoints: 62.138.16.134:35590 
	Endpoints pool: 62.138.16.134:35590 62.138.0.66:20034 
	--- End of 744c0491-dd7a-11e8-8aa1-d8cb8a37cf4b ---
Hash: swarm-ef0e47f8-6821-44e0-b821-ce909d661c4e
ID: e3b5a15a-dd8b-11e8-8662-d8cb8a37cf4b
UDP Port: 52196
Network interfaces: 192.168.88.52 
P2P Interface p2p6, HW Addr: 06:4d:ee:82:1f:c4, IP: 10.36.162.1
Proxies: 85.93.91.135:40622/20129 62.138.0.66:40622/20035 
Peers:
	--- 68d3a363-dd7a-11e8-8409-d8cb8a37cf4b ---
	States: CONNECTED | CONNECTED
	Network: 10.36.162.253 06:35:a6:85:3c:75
	Endpoint: 62.138.16.147:42319
	All Endpoints: 62.138.16.147:42319 62.138.0.66:20081 
	Endpoints pool: 62.138.16.147:42319 62.138.0.66:20081 
	--- End of 68d3a363-dd7a-11e8-8409-d8cb8a37cf4b ---
	--- e340bf17-dd8b-11e8-8011-d8cb8a37cf4b ---
	States: CONNECTED | CONNECTED
	Network: 10.36.162.254 06:25:f1:9a:34:7f
	Endpoint: 172.16.0.152:39842
	All Endpoints: 172.16.0.152:39842 
	Endpoints pool: 172.16.0.152:39842 192.168.122.1:39842 192.168.57.1:39842 192.168.105.1:39842 31.192.255.109:39842 85.93.91.135:20133 62.138.0.66:20040 
	--- End of e340bf17-dd8b-11e8-8011-d8cb8a37cf4b ---

root@subutai:/home/subutai# cat /var/lib/subutai/data/p2p.save 
10.250.75.1~~p2p7~swarm-79424ee5-434d-433e-b18f-e8560431ca66~~~ba4c4629f55be1e5b0d0c4949e7616e8~1540989922~0~0|||10.36.162.1~~p2p6~swarm-ef0e47f8-6821-44e0-b821-ce909d661c4e~~~be2833276389bc76528cb8b227b50db5~1540212667~0~0|||10.176.213.1~~p2p1~swarm-70a99a31-a067-4c5a-a30b-3a145d149025~~~6f6bd46692af98228a4cdd081364ad78~1540201452~0~0|||10.195.84.1~~p2p2~swarm-365a86e0-0ce9-4dc3-9ba6-877bd4e5d142~~~882498a79ccfde5738600ced4776b1b9~1540878555~0~0root@subutai:/home/subutai# p2p status
swarm-79424ee5-434d-433e-b18f-e8560431ca66|10.250.75.1
744c0491-dd7a-11e8-8aa1-d8cb8a37cf4b|10.250.75.2|State:CONNECTED|
swarm-ef0e47f8-6821-44e0-b821-ce909d661c4e|10.36.162.1
68d3a363-dd7a-11e8-8409-d8cb8a37cf4b|10.36.162.253|State:CONNECTED|
e340bf17-dd8b-11e8-8011-d8cb8a37cf4b|10.36.162.254|State:CONNECTED|
swarm-70a99a31-a067-4c5a-a30b-3a145d149025|10.176.213.1
e975f505-dd8b-11e8-8438-d8cb8a37cf4b|10.176.213.254|State:CONNECTED|
swarm-365a86e0-0ce9-4dc3-9ba6-877bd4e5d142|10.195.84.1
6b81809c-dd7a-11e8-83d1-d8cb8a37cf4b|10.195.84.252|State:CONNECTED|

@kurmanbekova6
Copy link

Master Peer:
screenshot from 2018-11-05 12-48-39

Fixed in Master

@kurmanbekova6
Copy link

screen shot 2018-11-08 at 11 19 35
Fixed in prod

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants