forked from feast-dev/feast
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbase_config.py
More file actions
34 lines (22 loc) · 1.13 KB
/
Copy pathbase_config.py
File metadata and controls
34 lines (22 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
from typing import Optional
from pydantic import StrictBool, StrictInt
from feast.repo_config import FeastConfigBaseModel
class FeatureLoggingConfig(FeastConfigBaseModel):
enabled: StrictBool = False
"""Whether the feature server should log served features."""
flush_interval_secs: StrictInt = 600
"""Interval of flushing logs to the destination in offline store."""
write_to_disk_interval_secs: StrictInt = 30
"""Interval of dumping logs collected in memory to local disk."""
queue_capacity: StrictInt = 100000
"""Log queue capacity. If number of produced logs is bigger than
processing speed logs will be accumulated in the queue.
After queue length will reach this number all new items will be rejected."""
emit_timeout_micro_secs: StrictInt = 10000
"""Timeout for adding new log item to the queue."""
class BaseFeatureServerConfig(FeastConfigBaseModel):
"""Base Feature Server config that should be extended"""
enabled: StrictBool = False
"""Whether the feature server should be launched."""
feature_logging: Optional[FeatureLoggingConfig]
""" Feature logging configuration """