feat: add clickhouse micro-batch storage
This commit is contained in:
@@ -31,6 +31,16 @@ class Settings(BaseSettings):
|
||||
|
||||
worker_instance_id: str = "worker-1"
|
||||
|
||||
clickhouse_host: str = "localhost"
|
||||
clickhouse_port: int = 8123
|
||||
clickhouse_database: str = "telecom"
|
||||
clickhouse_user: str = "telecom"
|
||||
clickhouse_password: str = ""
|
||||
|
||||
batch_size: int = 1_000
|
||||
batch_flush_interval_seconds: float = 2.0
|
||||
|
||||
|
||||
@lru_cache
|
||||
def get_settings() -> Settings:
|
||||
return Settings()
|
||||
|
||||
Reference in New Issue
Block a user