File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -381,6 +381,39 @@ Enable EVM tracing log:
381381--wasm-runtime-overrides /var/lib/astar/wasm
382382```
383383
384+ ### Use SQL db for Frontier Back-end
385+
386+ It is possible to choose between using RocksDB or SQL for the Frontier Back-end.
387+ SQL offers better performance over RocksDb for indexing and querying Ethereum logs.
388+
389+ The default is RocksDB, but you can choose SQL by adding the following command line argument:
390+
391+ ```
392+ --frontier-backend-type sql
393+ ```
394+
395+ This will run default values for SQL configuration.
396+
397+ To override the default configs values, we provide those flags:
398+ ```
399+ # sets the Frontier SQL backend's maximum number of database connections that a connection pool can simultaneously handle.
400+ # The default is 100
401+ --frontier-sql-backend-pool-size 100
402+
403+ # sets the Frontier SQL backend's query timeout in number of VM operations.
404+ # The default is 10000000
405+ --frontier-sql-backend-num-ops-timeout 10000000
406+
407+ # sets the Frontier SQL backend's auxiliary thread limit.
408+ # The default is 4
409+ --frontier-sql-backend-thread-count 4
410+
411+ # sets the Frontier SQL backend's cache size in bytes.
412+ # The default value is 200MB, which is 209715200 bytes
413+ --frontier-sql-backend-cache-size 209715200
414+ ```
415+
416+
384417### External monitoring
385418
386419```
You can’t perform that action at this time.
0 commit comments