Skip to content

Commit ab742c7

Browse files
alexanpatrananos
authored andcommitted
fix: various fixes and clean up.
Signed-off-by: Alexandros Patras <patras@uth.gr>
1 parent 68f0e64 commit ab742c7

67 files changed

Lines changed: 9100 additions & 37 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.0
1+
0.0.1

agents/.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/.idea
2+
/*.egg-info
3+
/dist
4+
/build
5+
*.log
6+
**/__pycache__/
7+
*.csv
8+
/**/.env
9+
*.kubeconfig
10+
/.*ini
11+
*.json

agents/MANIFEST.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
include README.md
2+
include LICENSE
3+
recursive-include mlsysops/templates *.j2
4+
recursive-include mlsysops/policies *.py

agents/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# MLSysOps Framework
2+
3+
Visit the documentation site for details.

agents/cluster/Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Base image
2+
FROM harbor.nbfc.io/proxy_cache/library/python:3.10-slim
3+
4+
# Set up a working directory
5+
WORKDIR /workdir
6+
7+
# Copy all application files into the image
8+
COPY . /workdir
9+
10+
# Install dependencies from requirements.txt
11+
RUN pip install --no-cache-dir -r requirements.txt
12+
RUN pip install --no-cache-dir -r fluidity/requirements.txt
13+
14+
# Export PYTHONPATH for the working directory
15+
ENV PYTHONPATH=/workdir
16+
17+
18+
# Default command to start the application
19+
CMD ["python3", "main.py"]

agents/cluster/MLSClusterAgent.py

Lines changed: 382 additions & 0 deletions
Large diffs are not rendered by default.

agents/cluster/config.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
mechanisms:
2+
- "fluidity"
3+
default_telemetry_metrics: "None"
4+
policy_directory: "policies"
5+
mechanisms_directory: "mechanisms"
6+
7+
continuum_layer: "cluster"
8+
monitor_data_retention_time: 30
9+
node_exporter_scrape_interval: 10s
10+
managed_telemetry_enabled: true
11+
12+
13+
behaviours:
14+
APIPingBehaviour:
15+
enabled: False
16+
Check_ml_deployment_Behaviour: # This is oneshot behaviour should be False always
17+
enabled: False
18+
CheckInactiveClustersBehaviour:
19+
enabled: False
20+
period: 10
21+
HBReceiverBehaviour:
22+
enabled: False
23+
HeartbeatBehaviour:
24+
enabled: False
25+
period: 10 # Example parameter for PeriodicBehaviour
26+
ManagementModeBehaviour:
27+
enabled: False
28+
ManageSubscriptionBehaviour:
29+
enabled: True
30+
MessageReceivingBehavior:
31+
enabled: False
32+
message_queue: "message_queue"
33+
Subscribe:
34+
enabled: True

0 commit comments

Comments
 (0)