66fc6dc3e5
refactor: stop using deprecated io/ioutil
2023-03-29 15:40:49 -04:00
2086b219d2
Don't use go-libp2p-core
2022-08-25 14:20:41 -04:00
7a23b411ae
Merge apistruct with the api package
2021-03-25 15:10:08 +01:00
b9adf95010
watchdog: increase heapprof capture threshold to 90%.
2021-01-21 14:06:18 +00:00
931cfe1ed1
upgrade to raulk/go-watchdog@v1.0.1
...
This pulls in the improvements introduced in:
- https://github.com/raulk/go-watchdog/releases/tag/v1.0.0
- https://github.com/raulk/go-watchdog/releases/tag/v1.0.1
Lotus tries to initialize the watchdog in the following order of precedence:
1. If a max heap limit has been provided, initialize a heap-driven watchdog.
2. Else, try to initialize a cgroup-driven watchdog.
3. Else, try to initialize a system-driven watchdog.
4. Else, log a warning that the system is flying solo, and return.
This PR also enabled automatic heap profile capture when memory usage
surpasses 90% of the limit. Profiles are written to <LOTUS_HOME>/heapprof.
A single heap profile is captured per episode, with a max of 10 episodes
captured during the lifetime of the process. Episode = instance of usage
climbing above the 90% threshold.
2021-01-20 18:09:19 +00:00
f9cbf6d526
watchdog: add LOTUS_DISABLE_WATCHDOG escape hatch.
2020-12-03 13:16:10 +00:00
d033f8aab1
watchdog: remove silence period, reduce tick interval to 5 secs.
2020-12-02 22:31:57 +00:00
e34a759889
avoid global ResourceConstraints.
2020-12-02 22:26:30 +00:00
e8a5e0d2fe
integrate memory watchdog; impose limits on badger caches.
2020-12-02 16:40:28 +00:00
22742a9ba0
bootstrap: don't return early when one drand resolution fails
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-10-30 21:58:17 +01:00
ae7889f830
Config for default max gas fee
2020-10-29 20:50:11 +01:00
6d29d75724
Merge branch 'master' into inmem-journal
2020-09-14 12:17:45 +01:00
c71e1adc93
Integrate multiple drand networks with pubsub
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-09-10 17:41:55 -04:00
64fa6fd9e5
Draw the rest of the owl
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-09-10 17:41:55 -04:00
3206f92063
Merge branch 'master' into inmem-journal
2020-09-02 19:50:52 +01:00
b27ee8241a
Add TODO note
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-08-27 19:05:37 +02:00
6e4889d340
Don't fail if could not resolved drand dnsaddr
...
Resolves https://github.com/filecoin-project/lotus/issues/3335
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-08-27 17:50:16 +02:00
efdfd3ee3e
Merge branch 'master' into inmem-journal
2020-08-26 16:38:23 +01:00
5733c71c50
Lint everything
...
We were ignoring quite a few error cases, and had one case where we weren't
actually updating state where we wanted to. Unfortunately, if the linter doesn't
pass, nobody has any reason to actually check lint failures in CI.
There are three remaining XXXs marked in the code for lint.
2020-08-20 20:46:36 -07:00
ed098390cb
Merge pull request #3172 from filecoin-project/feat/lotus-shed-jwt
...
lotus-shed: add simple jwt creation support
2020-08-19 23:32:01 +02:00
f1632376e7
lotus-shed: add simple jwt creation support
2020-08-19 19:21:36 +00:00
92598237c3
Merge branch 'next' into inmem-journal
2020-08-11 12:41:11 +01:00
7ae69c70fb
Cleanup DrandBootstrap
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-07-23 18:45:08 +02:00
695f6cfe45
wip in-memory journal.
2020-07-17 14:34:42 +01:00
42bd4eccbe
implement a persistent journal for lotus node operations
2020-07-06 09:42:00 -07:00
7762cd0a68
Assign positive scores to drand bootstrappers
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-06-08 11:34:46 +02:00
d6615b6286
Cleanup many lint warnings
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-05-27 22:53:20 +02:00
f7325a69c1
Extract auth utils to go-jsonrpc
2020-05-20 20:37:45 +02:00
607bcc401c
very basic api documentation autogeneration
2020-05-18 17:20:54 -07:00
49167cc55f
Expose JWT permission error
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-02-12 21:25:29 +01:00
1ed62628a7
Update go-log to v2
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-01-08 20:22:31 +01:00
c49dc28a04
Move api struct to a seprate pkg
2019-12-09 18:22:11 +01:00
36b7c5a32a
Swtich to xerrors
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2019-11-22 10:20:56 -06:00
5175d8541e
peer manager: Handle bootstrap in peermgr
2019-10-23 13:11:18 +02:00
1bf713cb0a
Cleanup imports after rename
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2019-10-18 13:47:41 +09:00
170b49b625
make: fix install, faster bootstrap
2019-10-17 03:24:45 +02:00
9a536e7cc0
config: Allow overriding bootstrap peers
2019-10-11 05:16:12 +02:00
c0179bd4fa
Periodic bootstrap
2019-10-11 02:31:26 +02:00
eda26faf21
Register miner address from storageminer process
2019-08-20 19:19:24 +02:00
542f645c28
gofmt
2019-08-01 16:20:50 +02:00
9ae450620a
Cleanup node/modules
2019-08-01 16:19:53 +02:00
6a4b9a6515
More separation for storage types in di modules
2019-08-01 16:14:16 +02:00
cdf0e0c858
chain: Test 'manual' sync
2019-07-31 10:43:13 -07:00
006fbe556f
Use correct ctx for SectorBuilder/Miner
2019-07-31 19:01:04 +02:00
ee224e5b21
Implement 'storage miner' module, wire up a few bits it needs to start
2019-07-29 17:46:56 -07:00
b83ff6b9dc
Wire up sector builder commands through the api
2019-07-29 12:08:47 -07:00
4fb4835b35
can we store it? YES WE CAN
2019-07-29 12:08:47 -07:00
f1432826d5
start integrating sector builder
2019-07-29 12:08:05 -07:00
78da356752
pull more things apart
2019-07-26 13:49:30 +02:00
e09ad3d65c
Refactor out more types into types package, and pull genesis block code into gen package
2019-07-25 16:35:47 -07:00