go-iost
go-iost copied to clipboard
节点同步慢
Info 2019-06-26 08:51:52.460 peer.go:104 peer is stopped. id=12D3KooWS9FSBmekKe5ESrK16G8kEcbtHtkUVPuaW4pfpBmyjTuB Info 2019-06-26 08:51:52.460 peer.go:147 peer is stopped. pid=12D3KooWS9FSBmekKe5ESrK16G8kEcbtHtkUVPuaW4pfpBmyjTuB, addr=/ip4/13.59.50.0/tcp/30000 Info 2019-06-26 08:51:52.839 peer.go:96 peer is started. id=12D3KooWKMv9BX7Xetdbbkf3Hb7yaSyDYAf4xS9rJkZ63mDQMQJc Info 2019-06-26 08:51:53.877 sync.go:170 Syncing block in [20294577 20295576]... Warn 2019-06-26 08:51:54.333 peer.go:173 read header failed. err=stream reset Info 2019-06-26 08:51:54.333 peer.go:104 peer is stopped. id=12D3KooWKMv9BX7Xetdbbkf3Hb7yaSyDYAf4xS9rJkZ63mDQMQJc Info 2019-06-26 08:51:54.333 peer.go:147 peer is stopped. pid=12D3KooWKMv9BX7Xetdbbkf3Hb7yaSyDYAf4xS9rJkZ63mDQMQJc, addr=/ip4/51.38.62.198/tcp/30000 Info 2019-06-26 08:51:55.878 sync.go:170 Syncing block in [20294577 20295576]... Warn 2019-06-26 08:51:57.839 peer_manager.go:544 create stream failed. pid=12D3KooWHfCWdXnKkTqFYNh8AhrjJ21v7RrTTuwSBLztHgGLWYyX, err=dial attempt failed: <peer.ID 12QmVbwW> --> <peer.ID 12GLWYyX> dial attempt failed: context deadline exceeded Info 2019-06-26 08:51:57.878 sync.go:170 Syncing block in [20294577 20295576]... Warn 2019-06-26 08:51:58.182 peer_manager.go:544 create stream failed. pid=12D3KooWSVRKtjCafh6fCCW4gJZ3hD9AHQ29CAaM71txTfaoWzMo, err=dial attempt failed: <peer.ID 12QmVbwW> --> <peer.ID 12aoWzMo> dial attempt failed: connection refused Info 2019-06-26 08:51:59.878 sync.go:170 Syncing block in [20294577 20295576]... Info 2019-06-26 08:52:01.883 sync.go:170 Syncing block in [20294577 20295576]... Warn 2019-06-26 08:52:03.183 peer_manager.go:544 create stream failed. pid=12D3KooWHgfun5Fhg7Nh5ZqUwCQk4tTRpraevXuVNbYhoVCQhH2T, err=dial attempt failed: <peer.ID 12QmVbwW> --> <peer.ID 12CQhH2T> dial attempt failed: context deadline exceeded Info 2019-06-26 08:52:03.199 peer.go:96 peer is started. id=12D3KooWBrAb8xbtu8UEtVY4a7K2gDv8KBekkY8EoXV6hr44VzcS Info 2019-06-26 08:52:03.883 sync.go:170 Syncing block in [20294577 20295576]... Warn 2019-06-26 08:52:04.205 peer.go:173 read header failed. err=stream reset Info 2019-06-26 08:52:04.205 peer.go:104 peer is stopped. id=12D3KooWBrAb8xbtu8UEtVY4a7K2gDv8KBekkY8EoXV6hr44VzcS Info 2019-06-26 08:52:04.205 peer.go:147 peer is stopped. pid=12D3KooWBrAb8xbtu8UEtVY4a7K2gDv8KBekkY8EoXV6hr44VzcS, addr=/ip4/34.85.29.238/tcp/30000 Info 2019-06-26 08:52:05.883 sync.go:170 Syncing block in [20294577 20295576]... Info 2019-06-26 08:52:07.902 sync.go:170 Syncing block in [20294577 20295576]... Warn 2019-06-26 08:52:08.211 peer_manager.go:544 create stream failed. pid=12D3KooWHW5rmt1yjNL9VYfEwLSZ91S99Tz661BSYxAhUj69wfpk, err=dial attempt failed: <peer.ID 12QmVbwW> --> <peer.ID 1269wfpk> dial attempt failed: context deadline exceeded Info 2019-06-26 08:52:09.902 sync.go:170 Syncing block in [20294577 20295576]... Info 2019-06-26 08:52:11.911 sync.go:170 Syncing block in [20294577 20295576]... Warn 2019-06-26 08:52:13.212 peer_manager.go:544 create stream failed. pid=12D3KooWLon7z5foJWv52UGbs3T8uZXGDwxPgkh2ZUbBpz3eAmsy, err=dial attempt failed: <peer.ID 12QmVbwW> --> <peer.ID 123eAmsy> dial attempt failed: context deadline exceeded Info 2019-06-26 08:52:13.912 sync.go:170 Syncing block in [20294577 20295576]... Info 2019-06-26 08:52:15.912 sync.go:170 Syncing block in [20294577 20295576]... Info 2019-06-26 08:52:17.913 sync.go:170 Syncing block in [20294577 20295576]... Warn 2019-06-26 08:52:18.227 peer_manager.go:544 create stream failed. pid=12D3KooWRBaU2EtZazoQQbUkKXMRXkRthv1G1PDgc9hSJ5cqiY6e, err=dial attempt failed: <peer.ID 12QmVbwW> --> <peer.ID 12cqiY6e> dial attempt failed: context deadline exceeded Info 2019-06-26 08:52:19.915 sync.go:170 Syncing block in [20294577 20295576]... Info 2019-06-26 08:52:21.925 sync.go:170 Syncing block in [20294577 20295576]... Warn 2019-06-26 08:52:23.228 peer_manager.go:544 create stream failed. pid=12D3KooWQwH8BTC4QMpTxm7u4Bj38ZdaCLSA1uJ4io3o1j8FCqYE, err=dial attempt failed: <peer.ID 12QmVbwW> --> <peer.ID 128FCqYE> dial attempt failed: context deadline exceeded Warn 2019-06-26 08:52:23.349 peer_manager.go:544 create stream failed. pid=12D3KooWEn54JfqfStnDUNEsHk2vHPB7ndtVpxZFy3CAQrGPbtZH, err=dial attempt failed: <peer.ID 12QmVbwW> --> <peer.ID 12GPbtZH> dial attempt failed: connection refused Warn 2019-06-26 08:52:23.566 peer_manager.go:544 create stream failed. pid=12D3KooWJPjEc5Wb4De8tVPxh2XbpyUKiqF19bVa9nSLauezpfBa, err=dial attempt failed: <peer.ID 12QmVbwW> --> <peer.ID 12ezpfBa> dial attempt failed: connected to wrong peer Info 2019-06-26 08:52:23.938 sync.go:170 Syncing block in [20294577 20295576]... Warn 2019-06-26 08:52:24.219 peer_manager.go:544 create stream failed. pid=12D3KooWBaAY3wWV2ko8942izKxkLSwLZ1tjsVquipPTLhAsm8AT, err=dial attempt failed: <peer.ID 12QmVbwW> --> <peer.ID 12Asm8AT> dial attempt failed: connection refused Info 2019-06-26 08:52:25.952 sync.go:170 Syncing block in [20294577 20295576]... Info 2019-06-26 08:52:27.953 sync.go:170 Syncing block in [20294577 20295576]... Warn 2019-06-26 08:52:29.220 peer_manager.go:544 create stream failed. pid=12D3KooWFyoeNZJs9rhZktASW2FzwxAziW9Vzn4ejd8rwQWjSNE7, err=dial attempt failed: <peer.ID 12QmVbwW> --> <peer.ID 12WjSNE7> dial attempt failed: context deadline exceeded Info 2019-06-26 08:52:29.965 sync.go:170 Syncing block in [20294577 20295576]... Info 2019-06-26 08:52:30.189 peer.go:96 peer is started. id=12D3KooWPE82JNdrDLL9mH6ZBGQBU8VLeTv6xwb97qyG59QjVbtv Warn 2019-06-26 08:52:31.532 peer.go:173 read header failed. err=stream reset Info 2019-06-26 08:52:31.532 peer.go:104 peer is stopped. id=12D3KooWPE82JNdrDLL9mH6ZBGQBU8VLeTv6xwb97qyG59QjVbtv Info 2019-06-26 08:52:31.532 peer.go:147 peer is stopped. pid=12D3KooWPE82JNdrDLL9mH6ZBGQBU8VLeTv6xwb97qyG59QjVbtv, addr=/ip4/159.203.38.15/tcp/30000 Info 2019-06-26 08:52:31.966 sync.go:170 Syncing block in [20294577 20295576]... Info 2019-06-26 08:52:33.966 sync.go:170 Syncing block in [20294577 20295576]... Warn 2019-06-26 08:52:35.190 peer_manager.go:544 create stream failed. pid=12D3KooWEzy3wCHSw2iegkKXojqxq1f8ECAQ31yyJLhpCm4AMv6Z, err=dial attempt failed: <peer.ID 12QmVbwW> --> <peer.ID 124AMv6Z> dial attempt failed: context deadline exceeded Warn 2019-06-26 08:52:35.219 peer_manager.go:544 create stream failed. pid=12D3KooWB81MRScAknE43guaRcmpcgCzzX7DZv2GXbznWQze42uh, err=dial attempt failed: <peer.ID 12QmVbwW> --> <peer.ID 12ze42uh> dial attempt failed: connected to wrong peer Info 2019-06-26 08:52:35.967 sync.go:170 Syncing block in [20294577 20295576]... Info 2019-06-26 08:52:37.967 sync.go:170 Syncing block in [20294577 20295576]... Info 2019-06-26 08:52:39.982 sync.go:170 Syncing block in [20294577 20295576]... Warn 2019-06-26 08:52:40.220 peer_manager.go:544 create stream failed. pid=12D3KooWDAtHw1KJxXYSRQynqXU6RNpPsrcqvhJHBpUszCEEYWtR, err=dial attempt failed: <peer.ID 12QmVbwW> --> <peer.ID 12EEYWtR> dial attempt failed: context deadline exceeded Info 2019-06-26 08:52:41.994 sync.go:170 Syncing block in [20294577 20295576]... Info 2019-06-26 08:52:44.001 sync.go:170 Syncing block in [20294577 20295576]... Warn 2019-06-26 08:52:45.225 peer_manager.go:544 create stream failed. pid=12D3KooWA4DaBnxmjfqUBVjwnw1fCrGzQ5Gb6iPbADMnTDrieC2x, err=dial attempt failed: <peer.ID 12QmVbwW> --> <peer.ID 12rieC2x> dial attempt failed: context deadline exceeded Info 2019-06-26 08:52:46.002 sync.go:170 Syncing block in [20294577 20295576]... Info 2019-06-26 08:52:48.002 sync.go:170 Syncing block in [20294577 20295576]... Info 2019-06-26 08:52:50.003 sync.go:170 Syncing block in [20294577 20295576]... Warn 2019-06-26 08:52:50.239 peer_manager.go:544 create stream failed. pid=12D3KooWRE9oZ4exzQ2cwPVJArCo9TGCoLrqvNoMT8t7WeqoHy6T, err=dial attempt failed: <peer.ID 12QmVbwW> --> <peer.ID 12qoHy6T> dial attempt failed: context deadline exceeded Info 2019-06-26 08:52:50.621 peer.go:96 peer is started. id=12D3KooWH1EEyrrJS99v7PNVuo8SLTuCmW4uNNgYLfbQeMgntssa Warn 2019-06-26 08:52:51.754 peer.go:173 read header failed. err=stream reset Info 2019-06-26 08:52:51.754 peer.go:104 peer is stopped. id=12D3KooWH1EEyrrJS99v7PNVuo8SLTuCmW4uNNgYLfbQeMgntssa Info 2019-06-26 08:52:51.754 peer.go:147 peer is stopped. pid=12D3KooWH1EEyrrJS99v7PNVuo8SLTuCmW4uNNgYLfbQeMgntssa, addr=/ip4/128.1.137.142/tcp/30000 Info 2019-06-26 08:52:52.003 sync.go:170 Syncing block in [20294577 20295576]... Info 2019-06-26 08:52:54.019 sync.go:170 Syncing block in [20294577 20295576]... Warn 2019-06-26 08:52:55.634 peer_manager.go:544 create stream failed. pid=12D3KooWKrwPaYPEzk3wn989qMxF1cGYHzWGSbMjFaPzGQQaLWr3, err=dial attempt failed: <peer.ID 12QmVbwW> --> <peer.ID 12QaLWr3> dial attempt failed: context deadline exceeded Info 2019-06-26 08:52:56.021 sync.go:170 Syncing block in [20294577 20295576]... Warn 2019-06-26 08:52:56.461 peer_manager.go:544 create stream failed. pid=12D3KooWBKH88cKADTet4GkvEg5wbgMrKXTUdkWMyFYVFJfcdEs7, err=dial attempt failed: <peer.ID 12QmVbwW> --> <peer.ID 12fcdEs7> dial attempt failed: connected to wrong peer Info 2019-06-26 08:52:56.554 peer.go:96 peer is started. id=12D3KooWLvZThMKYETMeQLNNZ9yH6GmjrDEaWDBX5SULGNodGnkV Warn 2019-06-26 08:52:57.574 peer.go:173 read header failed. err=stream reset
有用 snapshot 吗?
用了snapshot 同步速度还没出块速度快
第一次连接会需要一段时间
我是直接解压snapshot,然后启动节点。 Info 2019-06-26 10:18:16.965 peer.go:104 peer is stopped. id=12D3KooWFEKHgME4zvT5fdwYZSPqCCtNaGZB4tbEK2CSTd3DR18C Info 2019-06-26 10:18:16.965 peer.go:147 peer is stopped. pid=12D3KooWFEKHgME4zvT5fdwYZSPqCCtNaGZB4tbEK2CSTd3DR18C, addr=/ip4/54.199.85.194/tcp/30000 Info 2019-06-26 10:18:17.718 block.go:102 Receive block - @3 id:4u2K4LTztg..., t:1560217993500087656, num:20298991, confirmed:20298927, txs:15, pendingtxs:383, et:1326304218ms Info 2019-06-26 10:18:18.030 block.go:102 Receive block - @4 id:4u2K4LTztg..., t:1560217994000111500, num:20298992, confirmed:20298927, txs:6, pendingtxs:383, et:1326304030ms Info 2019-06-26 10:18:18.398 sync.go:170 Syncing block in [20298928 20299927]... Info 2019-06-26 10:18:18.487 block.go:102 Receive block - @5 id:4u2K4LTztg..., t:1560217994500101683, num:20298993, confirmed:20298927, txs:6, pendingtxs:385, et:1326303986ms Info 2019-06-26 10:18:19.565 block.go:102 Receive block - @0 id:EadsWWZqPy..., t:1560217995000161331, num:20298994, confirmed:20298933, txs:15, pendingtxs:390, et:1326304565ms 偶尔会同步几个块,但是大部分时间都是打warn日志
看起来没什么问题 网络带宽/cpu 如何?
节点搭在aws上,带宽没有问题。4核16G