Skip to content

Commit

Permalink
Merge pull request #55 from stefanDeveloper/simplify-logserver-and-co…
Browse files Browse the repository at this point in the history
…llector

Simplify LogServer, Collector and KafkaHandlers
  • Loading branch information
stefanDeveloper authored Nov 25, 2024
2 parents 403976f + f7f842e commit b63456f
Show file tree
Hide file tree
Showing 28 changed files with 2,180 additions and 1,721 deletions.
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ __pycache__/
*.py[cod]
*$py.class
*.pkl

# C extensions
*.so
*.html
Expand Down Expand Up @@ -320,6 +321,7 @@ dmypy.json
cython_debug/

# End of https://www.toptal.com/developers/gitignore/api/python,jupyternotebooks
/docs/api/

# Others
docs/api/
!/docs/api/index.rst
/pipeline_prototype/
12 changes: 7 additions & 5 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ logging:
pipeline:
log_storage:
logserver:
input_kafka_topic: "LogServer"
input_file: "/opt/file.txt"
max_number_of_connections: 1000

Expand Down Expand Up @@ -74,7 +73,10 @@ environment:
port: 8098
- hostname: 172.27.0.5
port: 8099
logserver:
hostname: 172.27.0.8
port_in: 9998
port_out: 9999
kafka_topics:
pipeline:
logserver_in: "pipeline.logserver_in"
logserver_to_collector: "pipeline.logserver_to_collector"
batch_sender_to_prefilter: "pipeline.batch_sender_to_prefilter"
prefilter_to_inspector: "pipeline.prefilter_to_inspector"
inspector_to_detector: "pipeline.inspector_to_detector"
4 changes: 1 addition & 3 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ services:
condition: service_healthy
clickhouse-server:
condition: service_healthy
ports:
- 9998:9998
networks:
heidgaf:
ipv4_address: 172.27.0.8
Expand Down Expand Up @@ -168,7 +166,7 @@ services:
devices:
- driver: nvidia
count: 1 # alternatively, use `count: all` for all GPUs
capabilities: [gpu]
capabilities: [ gpu ]

clickhouse-server:
image: clickhouse/clickhouse-server:24.3.12.75-alpine
Expand Down
2 changes: 1 addition & 1 deletion docker/dockerfiles/Dockerfile.logserver
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ENV PYTHONDONTWRITEBYTECODE=1
WORKDIR /usr/src/app

COPY requirements/requirements.logserver.txt ./
RUN pip --disable-pip-version-check install --no-cache-dir --no-compile -r requirements.logserver.txt
RUN pip --disable-pip-version-check install --no-cache-dir --no-compile -r requirements.logserver.txt

COPY src/base ./src/base
COPY src/logserver ./src/logserver
Expand Down
1 change: 0 additions & 1 deletion requirements/requirements.detector.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@ scikit-learn~=1.5.2
requests
colorlog~=6.8.2
PyYAML~=6.0.1
colorlog~=6.8.2
confluent-kafka~=2.4.0
marshmallow_dataclass~=8.7.1
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ omit =
tests/*
version.py
src/train/*
*sandbox.py

[coverage:report]
show_missing = True
Loading

0 comments on commit b63456f

Please sign in to comment.