Coretex
config_defaults.py
1 from pathlib import Path
2 
3 import multiprocessing
4 
5 from ..node import NodeMode
6 from ..statistics import getAvailableRam
7 
8 
9 DOCKER_CONTAINER_NAME = "coretex_node"
10 DOCKER_CONTAINER_NETWORK = "coretex_node"
11 DEFAULT_STORAGE_PATH = str(Path.home() / ".coretex")
12 DEFAULT_RAM = getAvailableRam()
13 MINIMUM_RAM = 6
14 DEFAULT_SWAP_MEMORY = DEFAULT_RAM * 2
15 DEFAULT_SHARED_MEMORY = 2
16 DEFAULT_CPU_COUNT = multiprocessing.cpu_count()
17 DEFAULT_NODE_MODE = NodeMode.execution
18 DEFAULT_ALLOW_DOCKER = False
19 DEFAULT_NODE_SECRET = ""
20 DEFAULT_INIT_SCRIPT = ""
21 DEFAULT_NEAR_WALLET_ID = ""
22 DEFAULT_ENDPOINT_INVOCATION_PRICE = 0.0
23 HEARTBEAT_INTERVAL = 5000 # ms