Skip to content

Set MAX_BUFFERED to 1,000,000#948

Merged
pm47 merged 1 commit intomasterfrom
bigger-send-buffer
Apr 19, 2019
Merged

Set MAX_BUFFERED to 1,000,000#948
pm47 merged 1 commit intomasterfrom
bigger-send-buffer

Conversation

@pm47
Copy link
Copy Markdown
Member

@pm47 pm47 commented Apr 15, 2019

Note that this doesn't mean that we will buffer 1M objects in memory:
those are just pointers to (mostly) network announcements that already
exist in our routing table.

Routing table has recently gone over 100K elements (nodes,
announcements, updates) and this causes the connection to be closed when
peer requests a full initial sync.

Note that this doesn't mean that we will buffer 1M objects in memory:
those are just pointers to (mostly) network announcements that already
exist in our routing table.

Routing table has recently gone over 100K elements (nodes,
announcements, updates) and this causes the connection to be closed when
peer requests a full initial sync.
@pm47
Copy link
Copy Markdown
Member Author

pm47 commented Apr 15, 2019

@n1bor your node 03c436af41160a355fc1ed230a64f6a64bcbd2ae50f12171d1318f9782602be601 is sending a lot of channel_updates and this may be the reason. Can you use this branch ASAP?

Have you made any changes to eclair that could cause excessive gossip?

@n1bor
Copy link
Copy Markdown
Contributor

n1bor commented Apr 15, 2019

OK - update in a minute - 100-150 does not sound a lot? I thought that was about expected?
Am on an old build about 255c280 from Dec 20 plus patches to API.

Is running this at the moment.
https://github.com/n1bor/eclair/tree/currentprod

Waiting on the new API to upgrade - as merging into the old was getting nasty!

18:06:16.128 DEBUG akka://eclair-node/user/$j/switchboard/peer-0279c22ed7a068d10dc1a38ae66d2d6461e269226c60258c021b1ddcdfe4b00bc4 fr.acinq.eclair.io.Peer - received pong with latency=123 18:06:16.514 DEBUG akka://eclair-node/user/$j/switchboard/peer-0365f2751764081280c3572d1d5af1caee9ed1d49872b687280eefdb48740ff22a fr.acinq.eclair.io.Peer - received pong with latency=49 18:06:16.835 INFO akka://eclair-node/user/$j/switchboard/peer-02855fed8520257d2b29ea8daa0139d4e3910febfbe817207f3158423770db2dab fr.acinq.eclair.io.Peer - sent announcements to 02855fed8520257d2b29ea8daa0139d4e3910febfbe817207f3158423770db2dab: channels=0 updates=113 nodes=0 18:06:16.837 INFO akka://eclair-node/user/$j/switchboard/peer-02bb24da3d0fb0793f4918c7599f973cc402f0912ec3fb530470f1fc08bdd6ecb5 fr.acinq.eclair.io.Peer - sent announcements to 02bb24da3d0fb0793f4918c7599f973cc402f0912ec3fb530470f1fc08bdd6ecb5: channels=0 updates=86 nodes=1 18:06:16.838 INFO akka://eclair-node/user/$j/switchboard/peer-035f5236d7e6c6d16107c1f86e4514e6ccdd6b2c13c2abc1d7a83cd26ecb4c1d0e fr.acinq.eclair.io.Peer - sent announcements to 035f5236d7e6c6d16107c1f86e4514e6ccdd6b2c13c2abc1d7a83cd26ecb4c1d0e: channels=0 updates=106 nodes=0 18:06:16.838 INFO akka://eclair-node/user/$j/switchboard/peer-03de7f5fa97bc87f048e977533fdc0484bf4e0a5b5ca6e55f7baf32b533cbac3f7 fr.acinq.eclair.io.Peer - sent announcements to 03de7f5fa97bc87f048e977533fdc0484bf4e0a5b5ca6e55f7baf32b533cbac3f7: channels=0 updates=132 nodes=1 18:06:16.838 INFO akka://eclair-node/user/$j/switchboard/peer-03a5927b64b1ea8657d5b770d61a3e2d0554fdb5d568773e0d6a92907913ca21f6 fr.acinq.eclair.io.Peer - sent announcements to 03a5927b64b1ea8657d5b770d61a3e2d0554fdb5d568773e0d6a92907913ca21f6: channels=0 updates=118 nodes=0 18:06:16.838 INFO akka://eclair-node/user/$j/switchboard/peer-0303a518845db99994783f606e6629e705cfaf072e5ce9a4d8bf9e249de4fbd019 fr.acinq.eclair.io.Peer - sent announcements to 0303a518845db99994783f606e6629e705cfaf072e5ce9a4d8bf9e249de4fbd019: channels=0 updates=121 nodes=1 18:06:16.844 INFO akka://eclair-node/user/$j/switchboard/peer-0248cf46e18f948a48cc2ff15965fd6e89405f2ad5b7fb91bf03859faf68e0f9d3 fr.acinq.eclair.io.Peer - sent announcements to 0248cf46e18f948a48cc2ff15965fd6e89405f2ad5b7fb91bf03859faf68e0f9d3: channels=0 updates=112 nodes=0 18:06:16.844 INFO akka://eclair-node/user/$j/switchboard/peer-03715c3b675c5ea2eccb810d6e84a4369a0f673ef769daf9e2a47b1ecd2edb93a2 fr.acinq.eclair.io.Peer - sent announcements to 03715c3b675c5ea2eccb810d6e84a4369a0f673ef769daf9e2a47b1ecd2edb93a2: channels=0 updates=137 nodes=1 18:06:16.855 INFO akka://eclair-node/user/$j/switchboard/peer-0276e09a267592e7451a939c932cf685f0754de382a3ca85d2fb3a864d4c365ad5 fr.acinq.eclair.io.Peer - sent announcements to 0276e09a267592e7451a939c932cf685f0754de382a3ca85d2fb3a864d4c365ad5: channels=0 updates=131 nodes=1 18:06:16.855 INFO akka://eclair-node/user/$j/switchboard/peer-02ad9b6128872b1fc7baa688cd07f32001ab707bd1077382a451477614df015ce5 fr.acinq.eclair.io.Peer - sent announcements to 02ad9b6128872b1fc7baa688cd07f32001ab707bd1077382a451477614df015ce5: channels=0 updates=124 nodes=1 18:06:16.855 INFO akka://eclair-node/user/$j/switchboard/peer-02ad6fb8d693dc1e4569bcedefadf5f72a931ae027dc0f0c544b34c1c6f3b9a02b fr.acinq.eclair.io.Peer - sent announcements to 02ad6fb8d693dc1e4569bcedefadf5f72a931ae027dc0f0c544b34c1c6f3b9a02b: channels=0 updates=117 nodes=0 18:06:16.857 INFO akka://eclair-node/user/$j/switchboard/peer-02e46cf7becfc79646e0580646c3915dfcebb34acefaaac1534b770ff6f45fc694 fr.acinq.eclair.io.Peer - sent announcements to 02e46cf7becfc79646e0580646c3915dfcebb34acefaaac1534b770ff6f45fc694: channels=0 updates=137 nodes=1 18:06:16.888 INFO akka://eclair-node/user/$j/switchboard/peer-033d61589aac2d743e3a5e3fead6a752d63dcf15342dc326f28ce0440a91cbbf73 fr.acinq.eclair.io.Peer - sent announcements to 033d61589aac2d743e3a5e3fead6a752d63dcf15342dc326f28ce0440a91cbbf73: channels=0 updates=128 nodes=0 18:06:16.902 INFO akka://eclair-node/user/$j/switchboard/peer-02e9046555a9665145b0dbd7f135744598418df7d61d3660659641886ef1274844 fr.acinq.eclair.io.Peer - sent announcements to 02e9046555a9665145b0dbd7f135744598418df7d61d3660659641886ef1274844: channels=0 updates=78 nodes=0 18:06:16.945 INFO akka://eclair-node/user/$j/switchboard/peer-0309869dc743430ecbe3f159bb7a1a44490778cbe8acc854fe71fb0b513753de36 fr.acinq.eclair.io.Peer - sent announcements to 0309869dc743430ecbe3f159bb7a1a44490778cbe8acc854fe71fb0b513753de36: channels=0 updates=106 nodes=0 18:06:16.958 INFO akka://eclair-node/user/$j/switchboard/peer-0365f2751764081280c3572d1d5af1caee9ed1d49872b687280eefdb48740ff22a fr.acinq.eclair.io.Peer - sent announcements to 0365f2751764081280c3572d1d5af1caee9ed1d49872b687280eefdb48740ff22a: channels=0 updates=123 nodes=0 18:06:16.959 INFO akka://eclair-node/user/$j/switchboard/peer-03768e3e2e5d5ca567b0180af372eef987045a2bac3152eec1baa75499c81bd0fe fr.acinq.eclair.io.Peer - sent announcements to 03768e3e2e5d5ca567b0180af372eef987045a2bac3152eec1baa75499c81bd0fe: channels=0 updates=111 nodes=0 18:06:16.960 INFO akka://eclair-node/user/$j/switchboard/peer-02e867c794a0544032eb2fb1cc4a29132a692363006781ed98567b474cf0e9343d fr.acinq.eclair.io.Peer - sent announcements to 02e867c794a0544032eb2fb1cc4a29132a692363006781ed98567b474cf0e9343d: channels=0 updates=109 nodes=0 18:06:16.971 INFO akka://eclair-node/user/$j/switchboard/peer-0368ce8faf9e23f31e7d4d244df488d627cee30a6cc66b9a8c366dd13e2f8b5fee fr.acinq.eclair.io.Peer - sent announcements to 0368ce8faf9e23f31e7d4d244df488d627cee30a6cc66b9a8c366dd13e2f8b5fee: channels=0 updates=116 nodes=0 18:06:16.986 INFO akka://eclair-node/user/$j/switchboard/peer-02529db69fd2ebd3126fb66fafa234fc3544477a23d509fe93ed229bb0e92e4fb8 fr.acinq.eclair.io.Peer - sent announcements to 02529db69fd2ebd3126fb66fafa234fc3544477a23d509fe93ed229bb0e92e4fb8: channels=0 updates=137 nodes=1 18:06:16.997 INFO akka://eclair-node/user/$j/switchboard/peer-03945c8c1c7c50a1026814496a120af4c9cea2653787555130d7837d9340631ee0 fr.acinq.eclair.io.Peer - sent announcements to 03945c8c1c7c50a1026814496a120af4c9cea2653787555130d7837d9340631ee0: channels=0 updates=137 nodes=1 18:06:17.001 INFO akka://eclair-node/user/$j/switchboard/peer-031dd05b132fcca906701d2544aa23d60bace06e86e326575ba2c53071a2fc11c5 fr.acinq.eclair.io.Peer - sent announcements to 031dd05b132fcca906701d2544aa23d60bace06e86e326575ba2c53071a2fc11c5: channels=0 updates=118 nodes=1 18:06:17.003 INFO akka://eclair-node/user/$j/switchboard/peer-0325b1fc186ffa68c0c9735991bd98275522c31124a373f152dbe77da359226c09 fr.acinq.eclair.io.Peer - sent announcements to 0325b1fc186ffa68c0c9735991bd98275522c31124a373f152dbe77da359226c09: channels=0 updates=117 nodes=0 18:06:17.006 INFO akka://eclair-node/user/$j/switchboard/peer-0290d863a9a022435f1794742167425dc660cfae87dc26999f2adb773c990e8a69 fr.acinq.eclair.io.Peer - sent announcements to 0290d863a9a022435f1794742167425dc660cfae87dc26999f2adb773c990e8a69: channels=0 updates=133 nodes=0 18:06:17.010 INFO akka://eclair-node/user/$j/switchboard/peer-021416c68bb97f58996d0787280d36f6b97c820d46e277889a6c1303c330a59533 fr.acinq.eclair.io.Peer - sent announcements to 021416c68bb97f58996d0787280d36f6b97c820d46e277889a6c1303c330a59533: channels=0 updates=108 nodes=0 18:06:17.010 INFO akka://eclair-node/user/$j/switchboard/peer-0394396e6e8cf8d9f91de4269dfd2e8416b93b91cae6139057c7283b463e4bfa31 fr.acinq.eclair.io.Peer - sent announcements to 0394396e6e8cf8d9f91de4269dfd2e8416b93b91cae6139057c7283b463e4bfa31: channels=0 updates=137 nodes=1 18:06:17.016 INFO akka://eclair-node/user/$j/switchboard/peer-027d7f94667974b10d3e8330de403111229669273dc9024745d195ba035d746e57 fr.acinq.eclair.io.Peer - sent announcements to 027d7f94667974b10d3e8330de403111229669273dc9024745d195ba035d746e57: channels=0 updates=137 nodes=1 18:06:17.112 INFO akka://eclair-node/user/$j/switchboard/peer-035d937399f0a5d1f2abfa379ab06d7d81e7e8395e80824cc0a24ca779fdecc5f0 fr.acinq.eclair.io.Peer - sent announcements to 035d937399f0a5d1f2abfa379ab06d7d81e7e8395e80824cc0a24ca779fdecc5f0: channels=0 updates=119 nodes=0 18:06:17.183 INFO akka://eclair-node/user/$j/switchboard/peer-02433a4392aae169249949ba4af6658e1cc985cfaf87fd3898bf58f3a543b31dd1 fr.acinq.eclair.io.Peer - sent announcements to 02433a4392aae169249949ba4af6658e1cc985cfaf87fd3898bf58f3a543b31dd1: channels=0 updates=95 nodes=0 18:06:17.185 INFO akka://eclair-node/user/$j/switchboard/peer-0352202545da26d42af1268fbf30a9c2ac20f08c417e9f9c430a4bd3b1f82c79ea fr.acinq.eclair.io.Peer - sent announcements to 0352202545da26d42af1268fbf30a9c2ac20f08c417e9f9c430a4bd3b1f82c79ea: channels=0 updates=137 nodes=1 18:06:17.221 INFO akka://eclair-node/user/$j/switchboard/peer-03fce165537aea120bffe8505876b44d5119354f825b3eac329b761fc5636bf334 fr.acinq.eclair.io.Peer - sent announcements to 03fce165537aea120bffe8505876b44d5119354f825b3eac329b761fc5636bf334: channels=0 updates=136 nodes=1 18:06:17.235 INFO akka://eclair-node/user/$j/switchboard/peer-0283183481c1421d43d591b0e330221e741ba41f0f846a5b482a37cff46b6998ec fr.acinq.eclair.io.Peer - sent announcements to 0283183481c1421d43d591b0e330221e741ba41f0f846a5b482a37cff46b6998ec: channels=0 updates=137 nodes=1 18:06:17.235 INFO akka://eclair-node/user/$j/switchboard/peer-03525a26e79adf5793bb9e2747ea7d0d925bf8157362148f3b5da6e1c855be07bf fr.acinq.eclair.io.Peer - sent announcements to 03525a26e79adf5793bb9e2747ea7d0d925bf8157362148f3b5da6e1c855be07bf: channels=0 updates=122 nodes=1 18:06:17.257 INFO akka://eclair-node/user/$j/switchboard/peer-03935a378993d0b55056801b11957aaecb9f85f34b64245f864c22a2d25001de74 fr.acinq.eclair.io.Peer - sent announcements to 03935a378993d0b55056801b11957aaecb9f85f34b64245f864c22a2d25001de74: channels=0 updates=137 nodes=1 18:06:17.305 INFO akka://eclair-node/user/$j/switchboard/peer-03457d5efde77c43ae640d8f71aa00204ba44bfb4cf2c6cb54dd3c69d340ff1de9 fr.acinq.eclair.io.Peer - sent announcements to 03457d5efde77c43ae640d8f71aa00204ba44bfb4cf2c6cb54dd3c69d340ff1de9: channels=0 updates=137 nodes=1 18:06:17.321 INFO akka://eclair-node/user/$j/switchboard/peer-02c91d6aa51aa940608b497b6beebcb1aec05be3c47704b682b3889424679ca490 fr.acinq.eclair.io.Peer - sent announcements to 02c91d6aa51aa940608b497b6beebcb1aec05be3c47704b682b3889424679ca490: channels=0 updates=130 nodes=1 18:06:17.324 INFO akka://eclair-node/user/$j/switchboard/peer-032d4baebebfdeab7a2ecef2fbe109cbef10de95f05aa54090fdb687789547dbf5 fr.acinq.eclair.io.Peer - sent announcements to 032d4baebebfdeab7a2ecef2fbe109cbef10de95f05aa54090fdb687789547dbf5: channels=0 updates=107 nodes=0 18:06:17.324 INFO akka://eclair-node/user/$j/switchboard/peer-03864ef025fde8fb587d989186ce6a4a186895ee44a926bfc370e2c366597a3f8f fr.acinq.eclair.io.Peer - sent announcements to 03864ef025fde8fb587d989186ce6a4a186895ee44a926bfc370e2c366597a3f8f: channels=0 updates=137 nodes=1 18:06:17.325 INFO akka://eclair-node/user/$j/switchboard/peer-03d33299897473544b10ff4a3d2cf3d0db2bd68066c00b18225cbb817976695a86 fr.acinq.eclair.io.Peer - sent announcements to 03d33299897473544b10ff4a3d2cf3d0db2bd68066c00b18225cbb817976695a86: channels=0 updates=137 nodes=1 18:06:17.325 INFO akka://eclair-node/user/$j/switchboard/peer-020b939e5146cf4ead29e64e9dfe765277ad9c623d80160a2aca204f3ccd550567 fr.acinq.eclair.io.Peer - sent announcements to 020b939e5146cf4ead29e64e9dfe765277ad9c623d80160a2aca204f3ccd550567: channels=0 updates=137 nodes=1 18:06:17.325 INFO akka://eclair-node/user/$j/switchboard/peer-03e26a98ee4d1320d5775fab291580969180592db3679e6d32e360dbd147066ca3 fr.acinq.eclair.io.Peer - sent announcements to 03e26a98ee4d1320d5775fab291580969180592db3679e6d32e360dbd147066ca3: channels=0 updates=118 nodes=1 18:06:17.325 INFO akka://eclair-node/user/$j/switchboard/peer-028303182c9885da93b3b25c9621d22cf34475e63c123942e402ab530c0556e675 fr.acinq.eclair.io.Peer - sent announcements to 028303182c9885da93b3b25c9621d22cf34475e63c123942e402ab530c0556e675: channels=0 updates=116 nodes=0 18:06:17.325 INFO akka://eclair-node/user/$j/switchboard/peer-0217f595c689d9628574d1d5ffaecaecf85e3b4b21d98872eeada228a13b644700 fr.acinq.eclair.io.Peer - sent announcements to 0217f595c689d9628574d1d5ffaecaecf85e3b4b21d98872eeada228a13b644700: channels=0 updates=137 nodes=1 18:06:17.325 INFO akka://eclair-node/user/$j/switchboard/peer-030c3f19d742ca294a55c00376b3b355c3c90d61c6b6b39554dbc7ac19b141c14f fr.acinq.eclair.io.Peer - sent announcements to 030c3f19d742ca294a55c00376b3b355c3c90d61c6b6b39554dbc7ac19b141c14f: channels=0 updates=133 nodes=1 18:06:17.325 INFO akka://eclair-node/user/$j/switchboard/peer-02d5ebd3385840e6296bef346d69593f6ae80c649713d08c832feec81288d5f532 fr.acinq.eclair.io.Peer - sent announcements to 02d5ebd3385840e6296bef346d69593f6ae80c649713d08c832feec81288d5f532: channels=0 updates=111 nodes=0 18:06:17.325 INFO akka://eclair-node/user/$j/switchboard/peer-02c960a2f65ee043600bd6e98898d4d6ba92d463bb04b5758b9b704d2e7750992d fr.acinq.eclair.io.Peer - sent announcements to 02c960a2f65ee043600bd6e98898d4d6ba92d463bb04b5758b9b704d2e7750992d: channels=0 updates=108 nodes=0 18:06:17.325 INFO akka://eclair-node/user/$j/switchboard/peer-024300c307415b88acd0c027c5dcf405e5a59f8b19867ee253ff10093932559849 fr.acinq.eclair.io.Peer - sent announcements to 024300c307415b88acd0c027c5dcf405e5a59f8b19867ee253ff10093932559849: channels=0 updates=132 nodes=1 18:06:17.326 INFO akka://eclair-node/user/$j/switchboard/peer-02cdf83ef8e45908b1092125d25c68dcec7751ca8d39f557775cd842e5bc127469 fr.acinq.eclair.io.Peer - sent announcements to 02cdf83ef8e45908b1092125d25c68dcec7751ca8d39f557775cd842e5bc127469: channels=0 updates=12 nodes=0 18:06:17.326 INFO akka://eclair-node/user/$j/switchboard/peer-02a5c7b9a2be3ab3d8c1647f991bf5f0757651a0b92f4133dc31e52b3315881adf fr.acinq.eclair.io.Peer - sent announcements to 02a5c7b9a2be3ab3d8c1647f991bf5f0757651a0b92f4133dc31e52b3315881adf: channels=0 updates=136 nodes=1 18:06:17.326 INFO akka://eclair-node/user/$j/switchboard/peer-0293b9ba2ced36f15af238afe9cad51153b3898849962f02b2899985885cfae14b fr.acinq.eclair.io.Peer - sent announcements to 0293b9ba2ced36f15af238afe9cad51153b3898849962f02b2899985885cfae14b: channels=0 updates=131 nodes=1 18:06:17.326 INFO akka://eclair-node/user/$j/switchboard/peer-03d3cc1f07917c5d5e5067c8a459eff979d53a2d0a4e27e30569bcbb3d8b752c24 fr.acinq.eclair.io.Peer - sent announcements to 03d3cc1f07917c5d5e5067c8a459eff979d53a2d0a4e27e30569bcbb3d8b752c24: channels=0 updates=29 nodes=0 18:06:17.326 INFO akka://eclair-node/user/$j/switchboard/peer-02f3069a342ae2883a6f29e275f06f28a56a6ea2e2d96f5888a3266444dcf542b6 fr.acinq.eclair.io.Peer - sent announcements to 02f3069a342ae2883a6f29e275f06f28a56a6ea2e2d96f5888a3266444dcf542b6: channels=0 updates=31 nodes=0 18:06:17.326 INFO akka://eclair-node/user/$j/switchboard/peer-0279c22ed7a068d10dc1a38ae66d2d6461e269226c60258c021b1ddcdfe4b00bc4 fr.acinq.eclair.io.Peer - sent announcements to 0279c22ed7a068d10dc1a38ae66d2d6461e269226c60258c021b1ddcdfe4b00bc4: channels=0 updates=95 nodes=0 18:06:17.326 INFO akka://eclair-node/user/$j/switchboard/peer-026ba101ad50f7b2eebb5042c0e1f41783f656d10734bcf8e8864dcda5adc62841 fr.acinq.eclair.io.Peer - sent announcements to 026ba101ad50f7b2eebb5042c0e1f41783f656d10734bcf8e8864dcda5adc62841: channels=0 updates=119 nodes=0 18:06:17.326 INFO akka://eclair-node/user/$j/switchboard/peer-0230465203e24e014c0879067908f24cee03ef708e5a1b6fa1c2f816c6a5d41edf fr.acinq.eclair.io.Peer - sent announcements to 0230465203e24e014c0879067908f24cee03ef708e5a1b6fa1c2f816c6a5d41edf: channels=0 updates=137 nodes=1 18:06:17.326 INFO akka://eclair-node/user/$j/switchboard/peer-0330e0a4e314681b739cae329cf93d5f56469b256b46f834f599eafceb8b081be5 fr.acinq.eclair.io.Peer - sent announcements to 0330e0a4e314681b739cae329cf93d5f56469b256b46f834f599eafceb8b081be5: channels=0 updates=118 nodes=1 18:06:17.326 INFO akka://eclair-node/user/$j/switchboard/peer-035f3a87393269e9bfb594f9ed6d2d3551ff527889be510429a8fa99736d710fdb fr.acinq.eclair.io.Peer - sent announcements to 035f3a87393269e9bfb594f9ed6d2d3551ff527889be510429a8fa99736d710fdb: channels=0 updates=102 nodes=0 18:06:17.326 INFO akka://eclair-node/user/$j/switchboard/peer-0291f2be9e31a62641afd1ccda96c455e04576e902b7c0af843f2bc0c6df17e15e fr.acinq.eclair.io.Peer - sent announcements to 0291f2be9e31a62641afd1ccda96c455e04576e902b7c0af843f2bc0c6df17e15e: channels=0 updates=121 nodes=1 18:06:17.327 INFO akka://eclair-node/user/$j/switchboard/peer-02065e25c272203440b66ea0ba66601d1248564554d0a68472b82511af54288120 fr.acinq.eclair.io.Peer - sent announcements to 02065e25c272203440b66ea0ba66601d1248564554d0a68472b82511af54288120: channels=0 updates=26 nodes=0 18:06:17.327 INFO akka://eclair-node/user/$j/switchboard/peer-03a503d8e30f2ff407096d235b5db63b4fcf3f89a653acb6f43d3fc492a7674019 fr.acinq.eclair.io.Peer - sent announcements to 03a503d8e30f2ff407096d235b5db63b4fcf3f89a653acb6f43d3fc492a7674019: channels=0 updates=108 nodes=0 18:06:17.327 INFO akka://eclair-node/user/$j/switchboard/peer-02b0172bb38617fa3afdb69664468b492d5a21062a4fa8b47284b0cc320e6e7420 fr.acinq.eclair.io.Peer - sent announcements to 02b0172bb38617fa3afdb69664468b492d5a21062a4fa8b47284b0cc320e6e7420: channels=0 updates=85 nodes=0 18:06:17.327 INFO akka://eclair-node/user/$j/switchboard/peer-0298359004b6887cef47b7505df97f877afc0488ec3ad2a33f0a8e3290a1a5a604 fr.acinq.eclair.io.Peer - sent announcements to 0298359004b6887cef47b7505df97f877afc0488ec3ad2a33f0a8e3290a1a5a604: channels=0 updates=110 nodes=0 18:06:17.328 INFO akka://eclair-node/user/$j/switchboard/peer-030995c0c0217d763c2274aa6ed69a0bb85fa2f7d118f93631550f3b6219a577f5 fr.acinq.eclair.io.Peer - sent announcements to 030995c0c0217d763c2274aa6ed69a0bb85fa2f7d118f93631550f3b6219a577f5: channels=0 updates=118 nodes=1 18:06:17.329 INFO akka://eclair-node/user/$j/switchboard/peer-031d244a60d61936834f290656cdf0ed4b9979260c19b07804bde681819f8e14ca fr.acinq.eclair.io.Peer - sent announcements to 031d244a60d61936834f290656cdf0ed4b9979260c19b07804bde681819f8e14ca: channels=0 updates=112 nodes=0 18:06:17.329 INFO akka://eclair-node/user/$j/switchboard/peer-028a8e53d70bc0eb7b5660943582f10b7fd6c727a78ad819ba8d45d6a638432c49 fr.acinq.eclair.io.Peer - sent announcements to 028a8e53d70bc0eb7b5660943582f10b7fd6c727a78ad819ba8d45d6a638432c49: channels=0 updates=137 nodes=1 18:06:17.329 INFO akka://eclair-node/user/$j/switchboard/peer-02a2c53bc475cb92e4ab2f38a5bca56df695034ce90ad78c2f47c05911e3f79e41 fr.acinq.eclair.io.Peer - sent announcements to 02a2c53bc475cb92e4ab2f38a5bca56df695034ce90ad78c2f47c05911e3f79e41: channels=0 updates=132 nodes=1 18:06:17.329 INFO akka://eclair-node/user/$j/switchboard/peer-0260fab633066ed7b1d9b9b8a0fac87e1579d1709e874d28a0d171a1f5c43bb877 fr.acinq.eclair.io.Peer - sent announcements to 0260fab633066ed7b1d9b9b8a0fac87e1579d1709e874d28a0d171a1f5c43bb877: channels=0 updates=112 nodes=0 18:06:17.329 INFO akka://eclair-node/user/$j/switchboard/peer-035b017b7e0e490ded4d70efee7b131a490249672265de1bdb4b31df465e6a1b43 fr.acinq.eclair.io.Peer - sent announcements to 035b017b7e0e490ded4d70efee7b131a490249672265de1bdb4b31df465e6a1b43: channels=0 updates=110 nodes=0 18:06:17.329 INFO akka://eclair-node/user/$j/switchboard/peer-02f8220c901057c536fc8b4fdffd4f88b8ddd9cf811af03bbf85dd2c1eb25a7262 fr.acinq.eclair.io.Peer - sent announcements to 02f8220c901057c536fc8b4fdffd4f88b8ddd9cf811af03bbf85dd2c1eb25a7262: channels=0 updates=113 nodes=0 18:06:17.329 INFO akka://eclair-node/user/$j/switchboard/peer-035a95bdafeaec089ded020248939b636296ea32e8cf9a0b6af70e9e517f703fce fr.acinq.eclair.io.Peer - sent announcements to 035a95bdafeaec089ded020248939b636296ea32e8cf9a0b6af70e9e517f703fce: channels=0 updates=117 nodes=1 18:06:17.329 INFO akka://eclair-node/user/$j/switchboard/peer-0388a2cd707ac944a2b0c8adbf67c4a313d24b6dc2ab2baba842f9a9eecf925131 fr.acinq.eclair.io.Peer - sent announcements to 0388a2cd707ac944a2b0c8adbf67c4a313d24b6dc2ab2baba842f9a9eecf925131: channels=0 updates=126 nodes=1 18:06:17.329 INFO akka://eclair-node/user/$j/switchboard/peer-03829e914fc787d1f239dd05408565aa81ef69f52deefacb3b148761f13b97163d fr.acinq.eclair.io.Peer - sent announcements to 03829e914fc787d1f239dd05408565aa81ef69f52deefacb3b148761f13b97163d: channels=0 updates=123 nodes=1 18:06:17.329 INFO akka://eclair-node/user/$j/switchboard/peer-031f624a7f0ce33a654e3c84085155e0e990da44380554350325e4b16927af1606 fr.acinq.eclair.io.Peer - sent announcements to 031f624a7f0ce33a654e3c84085155e0e990da44380554350325e4b16927af1606: channels=0 updates=115 nodes=0 18:06:17.329 INFO akka://eclair-node/user/$j/switchboard/peer-0396155d18e9db01f15f760d42b248cc1dd7e8dde6e0cde1085493147ece520a1c fr.acinq.eclair.io.Peer - sent announcements to 0396155d18e9db01f15f760d42b248cc1dd7e8dde6e0cde1085493147ece520a1c: channels=0 updates=137 nodes=1 18:06:17.329 INFO akka://eclair-node/user/$j/switchboard/peer-02d4531a2f2e6e5a9033d37d548cff4834a3898e74c3abe1985b493c42ebbd707d fr.acinq.eclair.io.Peer - sent announcements to 02d4531a2f2e6e5a9033d37d548cff4834a3898e74c3abe1985b493c42ebbd707d: channels=0 updates=109 nodes=0 18:06:17.329 INFO akka://eclair-node/user/$j/switchboard/peer-033e9ce4e8f0e68f7db49ffb6b9eecc10605f3f3fcb3c630545887749ab515b9c7 fr.acinq.eclair.io.Peer - sent announcements to 033e9ce4e8f0e68f7db49ffb6b9eecc10605f3f3fcb3c630545887749ab515b9c7: channels=0 updates=48 nodes=0 18:06:17.330 INFO akka://eclair-node/user/$j/switchboard/peer-03beddc8adbf7d56a7da15cdaf95d97b24d07088c3571b421c0e6f9d551a210342 fr.acinq.eclair.io.Peer - sent announcements to 03beddc8adbf7d56a7da15cdaf95d97b24d07088c3571b421c0e6f9d551a210342: channels=0 updates=132 nodes=1 18:06:17.417 DEBUG akka://eclair-node/user/$j/switchboard/peer-0248cf46e18f948a48cc2ff15965fd6e89405f2ad5b7fb91bf03859faf68e0f9d3/$b fr.acinq.eclair.channel.Channel - received remote announcement signatures, delaying 18:06:17.445 DEBUG akka://eclair-node/user/$j/switchboard/peer-03457d5efde77c43ae640d8f71aa00204ba44bfb4cf2c6cb54dd3c69d340ff1de9 fr.acinq.eclair.io.Peer - received pong with latency=104 18:06:18.138 DEBUG akka://eclair-node/user/$j/switchboard/peer-0291f2be9e31a62641afd1ccda96c455e04576e902b7c0af843f2bc0c6df17e15e fr.acinq.eclair.io.Peer - received pong with latency=13

n1bor added a commit to n1bor/eclair that referenced this pull request Apr 15, 2019
@pm47
Copy link
Copy Markdown
Member Author

pm47 commented Apr 15, 2019

100-150 does not sound a lot? I thought that was about expected?

It is expected that your node forwards about that amount of gossip (originating from external nodes), but it looks like your node keeps creating and sending updates for the same channels over and over again.

Am on an old build about 255c280 from Dec 20 plus patches to API.

Wow, that's pretty old. It'd be nice to upgrade!

@n1bor
Copy link
Copy Markdown
Contributor

n1bor commented Apr 15, 2019

I was hitting the limit - but not so often.

But how is 1m going to fix it long term?

eclairwarn.2019-04-06.log:22:26:06.440 WARN akka://eclair-node/user/$i/authenticator/$xP~ f.a.eclair.crypto.TransportHandler - send buffer overrun, closing connection eclairwarn.2019-04-06.log:22:28:29.775 WARN akka://eclair-node/user/$i/authenticator/$LP~ f.a.eclair.crypto.TransportHandler - send buffer overrun, closing connection eclairwarn.2019-04-06.log:23:09:34.927 WARN akka://eclair-node/user/$i/authenticator/$2R~ f.a.eclair.crypto.TransportHandler - send buffer overrun, closing connection eclairwarn.2019-04-06.log:23:42:00.329 WARN akka://eclair-node/user/$i/authenticator/$IT~ f.a.eclair.crypto.TransportHandler - send buffer overrun, closing connection eclairwarn.2019-04-07.log:02:53:26.018 WARN akka://eclair-node/user/$i/authenticator/$9cab f.a.eclair.crypto.TransportHandler - send buffer overrun, closing connection eclairwarn.2019-04-07.log:04:06:31.213 WARN akka://eclair-node/user/$i/authenticator/$ugab f.a.eclair.crypto.TransportHandler - send buffer overrun, closing connection eclairwarn.2019-04-07.log:05:58:37.315 WARN akka://eclair-node/user/$i/authenticator/$elab f.a.eclair.crypto.TransportHandler - send buffer overrun, closing connection eclairwarn.2019-04-07.log:08:07:23.823 WARN akka://eclair-node/user/$i/authenticator/$Jpab f.a.eclair.crypto.TransportHandler - send buffer overrun, closing connection eclairwarn.2019-04-07.log:08:59:18.417 WARN akka://eclair-node/user/$i/authenticator/$xrab f.a.eclair.crypto.TransportHandler - send buffer overrun, closing connection eclairwarn.2019-04-07.log:15:10:12.531 WARN akka://eclair-node/user/$i/authenticator/$Kbbb f.a.eclair.crypto.TransportHandler - send buffer overrun, closing connection eclairwarn.2019-04-08.log:00:49:09.468 WARN akka://eclair-node/user/$i/authenticator/$IBcb f.a.eclair.crypto.TransportHandler - send buffer overrun, closing connection eclairwarn.2019-04-08.log:03:00:30.543 WARN akka://eclair-node/user/$i/authenticator/$hTcb f.a.eclair.crypto.TransportHandler - send buffer overrun, closing connection eclairwarn.2019-04-08.log:11:18:19.609 WARN akka://eclair-node/user/$i/authenticator/$Opdb f.a.eclair.crypto.TransportHandler - send buffer overrun, closing connection eclairwarn.2019-04-08.log:11:18:48.946 WARN akka://eclair-node/user/$i/authenticator/$Qpdb f.a.eclair.crypto.TransportHandler - send buffer overrun, closing connection

@pm47
Copy link
Copy Markdown
Member Author

pm47 commented Apr 15, 2019

But how is 1m going to fix it long term?

Long term we will not use initial_routing_sync, which is simplistic and was for bootstrapping (we already have channel range queries), and we probably won't sync the whole table anyway.

@n1bor
Copy link
Copy Markdown
Contributor

n1bor commented Apr 17, 2019

Just upgraded to the paymentdb release plus this. Looks MUCH better. Am holding open channels now and not flapping them. This was not the fix - but the old release had some issue somewhere.

@pm47 pm47 marked this pull request as ready for review April 18, 2019 15:03
@pm47 pm47 requested a review from sstone April 18, 2019 15:03
@pm47 pm47 merged commit 44778a7 into master Apr 19, 2019
@pm47 pm47 deleted the bigger-send-buffer branch April 19, 2019 12:19
pm47 pushed a commit that referenced this pull request May 21, 2019
* Fix eclair-cli to work with equal sign in arguments (#926)

* Fix eclair cli argument passing

* Modify eclair-cli to work with equals in arguments

* Eclair-cli: show usage when wrong params are received

* Remove deprecated call from eclair-cli help message [ci skip]

* Make Electrum tests pass on windows (#932)

There was an obscure Docker error when trying to start an Electrum
server in tests. [1]

It appears that there is a conflict between Docker and Hyper-V on some
range of ports.

A workaround is to just change the port we were using.

[1] docker/for-win#3171

* API: fix fee rate conversion (#936)

Our `open` API calls expects an optional fee rate in satoshi/byte, which is the most widely
used unit, but failed to convert to satoshi/kiloweight which is the standard in LN.
We also check that the converted fee rate cannot go below 253 satoshi/kiloweight.

* Expose the websocket over HTTP GET to work properly with basic auth (#934)

* Expose the websocket over HTTP GET
* Add test for basic auth over websocket endpoint

* Set max payment attempts from configuration (#931)

With a default to `5`.

* Add a proper payments database (#885)

There is no unique identifier for payments in LN protocol. Critically,
we can't use `payment_hash` as a unique id because there is no way to
ensure unicity at the protocol level.

Also, the general case for a "payment" is to be associated to multiple
`update_add_htlc`s, because of automated retries. We also routinely
retry payments, which means that the same `payment_hash` will be
conceptually linked to a list of lists of `update_add_htlc`s.

In order to address this, we introduce a payment id, which uniquely
identifies a payment, as in a set of sequential `update_add_htlc`
managed by a single `PaymentLifecycle` that ends with a `PaymentSent` or
`PaymentFailed` outcome.

We can then query the api using either `payment_id` or `payment_hash`.
The former will return a single payment status, the latter will return a
set of payment statuses, each identified by their `payment_id`.

* Add a payment identifier

* Remove InvalidPaymentHash channel exception

* Remove unused 'close' from paymentsDb

* Introduce sent_payments in PaymentDB, bump db version

* Return the UUID of the ongoing payment in /send API

* Add api to query payments by ID

* Add 'fallbackAddress' in /receive API

* Expose /paymentinfo by paymentHash

* Add id column to audit.sent table, add test for db migration

* Add invoices to payment DB

* Add license header to ExtraDirective.scala

* Respond with HTTP 404 if the corresponding invoice/paymentHash was not found.

* Left-pad numeric bolt11 tagged fields to have a number of bits multiple of five (bech32 encoding).

* Add invoices API

* Remove CheckPayment message

* GUI: consume UUID reply from payment initiator

* API: reply with JSON encoded response if the queried element wasn't found

* Return a payment request object in /receive

* Remove limit of pending payment requests!

* Avoid printing "null" fields when serializing an invoice to json

* Add index on paymentDb.sent_payments.payment_hash

* Order results in descending order in listPaymentRequest

* Electrum: do not persist transaction locks (#953)

Locks held on utxos that are used in unpublished funding transactions should not be persisted.
If the app is stopped before the funding transaction has been published the channel is forgotten
and so should be locks on its funding tx utxos.

* Added a timeout for channel open request (#928)

Until now, if the peer is unresponsive (typically doesn't respond to
`open_channel` or `funding_created`), we waited indefinitely, or until the
connection closed.

It translated to an API timeout for users, and uncertainty about the
state of the channel.

This PR:
- adds an optional `--openTimeoutSeconds` timeout to the `open` endpoint, that will
actively cancel the channel opening if it takes too long before reaching
state `WAIT_FOR_FUNDING_CONFIRMED`.
- makes the `ask` timeout configurable per request with a new `--timeoutSeconds`
- makes the akka http timeout slightly greater than the `ask` timeout

Ask timeout is set to 30s by default.

* Set `MAX_BUFFERED` to 1,000,000 (#948)

Note that this doesn't mean that we will buffer 1M objects in memory:
those are just pointers to (mostly) network announcements that already
exist in our routing table.

Routing table has recently gone over 100K elements (nodes,
announcements, updates) and this causes the connection to be closed when
peer requests a full initial sync.

* Fix Dockerfile maven binary checksum (#956)

The Maven 3.6.0 SHA256 checksum was invalid and caused the docker build to fail.

* Add channel errors in audit db (#955)

We now keep track of all local/remote channel errors in the audit db.

* Added simple plugin support (#927)

Using org.clapper:classutil library and a very simple `Plugin` interface.

* Live channel database backup (#951)

* Backup running channel database when needed

Every time our channel database needs to be persisted, we create a backup which is always
safe to copy even when the system is busy.

* Upgrade sqlite-jdbc to 3.27.2.1

* BackupHandler: use a specific bounded mailbox

BackupHandler is now private, users have to call BackupHandler.props() which always
specifies our custom bounded maibox.

* BackupHandler: use a specific threadpool with a single thread

* Add backup notification script

Once a new backup has been created, call an optional user defined script.

* Update readme with bitcoin 0.17 instructions (#958)

This has somehow been missed by PR #826.

* Backup: explicitely specify move options (#960)

* Backup: explicitely specify move options

We now specify that we want to atomically overwrite the existing backup file with the new one (fixes
a potential issue on Windows).
We also publish a specific notification when the backup process has been completed.

* Print stack trace when crashing during boot sequence (#949)

* Print stack trace when crashing during boot sequence

* Use friendly message when db compatibility check fails

* ElectrumWallet should not send ready if syncing (#963)

This commit is already embedded in version `0.2-android-beta22`.

* Channel: Log additional data (#943)

* Channel: Log additional data

Log local channel parameters, and our peer's open or accept message.
This should be enough to recompute keys needed to recover funds in case of unilateral close.

* Electrum: make debug logs shorter (#964)

* Better handling of closed channels (#944)

* Remove closed channels when application starts

If the app is stopped just after a channel has transition from CLOSING to CLOSED, when the  application starts again if will be restored as CLOSING. This commit checks channel data and remove closed channels instead of restoring them.

* Channels Database: tag closed channels but don't delete them

Instead we add a new `closed` column that we check when we restore channels.

* Document how we check and remove closed channels on startup

* Do not print the stacktrace on stderr when there is an error at boot (#966)

* Do not print the stacktrace on stdout when there is an error at boot

* Fix flaky test in PaymentLifecycleSpec (#967)

* Use local random pamentHash for each test in paymentlifecyclespec, intercept the route request before the router.

* Rename `eclair.bak` to `eclair.sqlite.bak` (#968)

This removes any ambiguity about what the content of the file is about.

* Fixed concurrency issue in `IndexedObservableList` (#961)

Update map with new indexes after element is removed

Fixes #915

* Various fix and improvements in time/timestamp handling (#971)

This PR standardizes the way we compute the current time as unix timestamp 

- Scala's Platform is used and the conversion is done via scala's concurrent.duration facilities
- Java's Instant has been replaced due to broken compatibility with android
- AuditDB events use milliseconds (fixes #970)
- PaymentDB events use milliseconds
- Query filters for AuditDB and PaymentDB use seconds

* API: Support query by `channelId` or `shortChannelId` everywhere (#969)

Add support for querying a channel information by its `shortChannelId`.

* Smarter strategy for sending `channel_update`s (#950)

The goal is to prevent sending a lot of updates for flappy channels.

Instead of sending a disabled `channel_update` after each disconnection, 
we now wait for a payment to try to route through the channel and only 
then reply with a disabled `channel_update` and broadcast it on the
network.

The reason is that in case of a disconnection, if noone cares about that
channel then there is no reason to tell everyone about its current
(disconnected) state.

In addition to that, when switching from `SYNCING`->`NORMAL`, instead
of emitting a new `channel_update` with flag=enabled right away, we wait
a little bit and send it later. We also don't send a new `channel_update` if
it is identical to the previous one (except if the previous one is outdated).

This way, if a connection to a peer is unstable and we keep getting
disconnected/reconnected, we won't spam the network.

The extra delay allows us to remove the change made in #888, which was
a workaround in case we generated `channel_update` too quickly.

Also, increased refresh interval from 7 days to 10 days. There was no
need to be so conservative.

Note that on startup we still need to re-send `channel_update` for all 
channels in order to properly initialize the `Router` and the `Relayer`.
Otherwise they won't know about those channels, and e.g. the 
`Relayer` will return `UnknownNextPeer` errors.

But we don't need to create new `channel_update`s in most cases, so 
this should have little or no impact to gossip because our peers will
already know the updates and will filter them out.

On the other hand, if some global parameters (like relaying fees) are
changed, it will cause the creation a new `channel_update` for all
channels.

* Fixed overflow issue with max duration (#975)

This is a regression caused by #971, because `Duration` has a max value of `Long.MaxValue` *nanoseconds*, not *seconds*.

* Use proper closing type in `ChannelClosed` event (#977)

There was actually a change introduced by #944 where we used
`ClosingType.toString` instead of manually defining types, causing a
regression in the audit database.

* Update bash autocompletion for eclair-cli (#983)

* Update bash autocompletition file to suggest all the endpoints

* Update list of commands in eclair-cli help message

* Replace `UnknownPaymentHash` and `IncorrectPaymentAmount` with `IncorrectOrUnknownPaymentDetails` (#984)

See lightning/bolts#516 and lightning/bolts#544

* Wireshark dissector support (#981)

* Transport: add support for encryption key logging.
This is the format the wireshark lightning-dissector uses to be able to decrypt lightning messages.

* Enrich test for internal eclair API implementation (fr.acinq.eclair.Eclair.scala) (#938)

* Add test to EclairImpl for `/send`, `/allupdates` and `/forceclose/`

* Set default chain to "mainnet" (#989)

Eclair is now configured to run on mainnet by default.

* Set tcp client timeout to 20s (#990)

So that it fails before the ask/api time out.

* Add bot support for code coverage (codecov) (#982)

* Add scoverage-maven-plugin dependency

* Update travis build to generate a scoverage report

* Add custom codecov configuration to have nice PR comments

* Add badge for test coverage in readme

* Accept `commit_sig` without changes (#988)

LND sometimes sends a new signature without any changes, which is a
(harmless) spec violation.

Note that the test was previously not failing because it wasn't specific
enough. The test now fails and has been ignored.

* Ignore subprojects eclair-node/eclair-node-gui in the codecov report (#991)

* Use bitcoind fee estimator first (#987)

* use bitcoind fee provider first

* set default `smooth-feerate-window`=6

* Configuration: increase fee rate mismatch threshold

We wil accept fee rates that up to 8x bigger or smaller than our local fee rate

* Updated license header (#992)

* Release v0.3 (#994)

* gui: include javafx native libraries for windows, mac, linux

* Release v0.3

* Set version to 0.3.1-SNAPSHOT

* Improved test coverage of `io` package (#996)

* improved test coverage of `NodeURI`

* improved test coverage of `Peer`

* Fix TextUI

* BackupHandler: use renameTo() on Android

Most Path methods are not available at our current API level
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants