diff --git a/deployment/docker-compose-lily.yml b/deployment/docker-compose-lily.yml index 0b9a763d..38eef03f 100644 --- a/deployment/docker-compose-lily.yml +++ b/deployment/docker-compose-lily.yml @@ -18,6 +18,7 @@ services: - ./snapshot:/var/lib/lily/snapshot # lily config - ./lily/config.toml:/var/lib/lily/config.toml + - ./lily/upsert_config.toml:/var/lib/lily/upsert_config.toml - ./lily/docker_init.sh:/usr/bin/docker_init.sh entrypoint: /usr/bin/docker_init.sh restart: always diff --git a/deployment/lily/docker_init.sh b/deployment/lily/docker_init.sh index 7ada50fe..f598df47 100755 --- a/deployment/lily/docker_init.sh +++ b/deployment/lily/docker_init.sh @@ -39,5 +39,9 @@ lily job run --tasks=${tasks} --storage="Database1" watch --confidence=5 lily job run --tasks="peeragents" --storage="Database1" survey --interval="24h" +lily job run --tasks="fevm_actor_dump,miner_actor_dump" --storage="Database1" watch --confidence=5 --interval=120 + +lily sync blocks --config=/var/lib/lily/upsert_config.toml --storage=Database1 & + # resume daemon stdout lily job wait --id=1 diff --git a/deployment/lily/upsert_config.toml b/deployment/lily/upsert_config.toml new file mode 100644 index 00000000..1f22c7bb --- /dev/null +++ b/deployment/lily/upsert_config.toml @@ -0,0 +1,62 @@ +[API] + ListenAddress = "/ip4/127.0.0.1/tcp/1234/http" + RemoteListenAddress = "" + Timeout = "30s" + +[Backup] + DisableMetadataLog = false + +[Logging] + +[Libp2p] + ListenAddresses = ["/ip4/0.0.0.0/tcp/0", "/ip6/::/tcp/0"] + AnnounceAddresses = [] + NoAnnounceAddresses = [] + DisableNatPortMap = false + ConnMgrLow = 150 + ConnMgrHigh = 180 + ConnMgrGrace = "20s" + +[Pubsub] + Bootstrapper = false + RemoteTracer = "/dns4/pubsub-tracer.filecoin.io/tcp/4001/p2p/QmTd6UvR47vUidRNZ1ZKXHrAFhqTJAD27rKL9XYghEKgKX" + +[Client] + UseIpfs = false + IpfsOnlineMode = false + IpfsMAddr = "" + IpfsUseForRetrieval = false + SimultaneousTransfersForStorage = 20 + SimultaneousTransfersForRetrieval = 20 + OffChainRetrieval = false + +[Chainstore] + EnableSplitstore = true + [Chainstore.Splitstore] + ColdStoreType = "discard" + HotStoreFullGCFrequency = 3 + HotStoreMaxSpaceTarget = 650000000000 + HotStoreMaxSpaceThreshold = 150000000000 + +[Fevm] + # EnableEthRPC enables eth_ rpc, and enables storing a mapping of eth transaction hashes to filecoin message Cids. + # This will also enable the RealTimeFilterAPI and HistoricFilterAPI by default, but they can be disabled by config options above. + # + # type: bool + # env var: LOTUS_FEVM_ENABLEETHRPC + EnableEthRPC = true + +[Storage] + [Storage.File] + [Storage.File.CSV] + Format = "CSV" + Path = "/tmp" + OmitHeader = false + FilePattern = "{table}.csv" + [Storage.Postgresql] + [Storage.Postgresql.Database1] + URLEnv = "LILY_STORAGE_POSTGRESQL_DB_URL" + ApplicationName = "lily" + SchemaName = "visor" + PoolSize = 20 + AllowUpsert = true