Skip to content

Commit

Permalink
Merge pull request #24 from Saetch/18-add-webui
Browse files Browse the repository at this point in the history
updated bicubic interpolation route and added deploy.yamls for 3 serv…
  • Loading branch information
Saetch authored Jun 26, 2024
2 parents 5c85c54 + 8c4db1f commit 450b221
Show file tree
Hide file tree
Showing 5 changed files with 128 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cluster/Node_cs/ApiConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class ApiConfig
{

public ConcurrentDictionary<Tuple<int, int>, double> savedValues = new ConcurrentDictionary<Tuple<int, int>, double>();
public String BICUBIC_INTERPOLATION_SERVICE_URL = "http://bicubic_interpolation_service:8080/calculate";
public String BICUBIC_INTERPOLATION_SERVICE_URL = "http://bicubic:8080/calculate";
public String hostname = Environment.GetEnvironmentVariable("HOSTNAME");
public String COORDINATOR_SERVICE_URL = "coordinator";
public int PORT = 8080;
Expand Down
2 changes: 1 addition & 1 deletion Cluster/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ services:
- distr-network
deploy:
mode: replicated
replicas: 4
replicas: 7
depends_on:
- coordinator
- hasher_service
Expand Down
42 changes: 42 additions & 0 deletions deploy/deploy-bicubic_interpolation_service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: bicubic
spec:
selector:
matchLabels:
app: bicubic
template:
metadata:
labels:
app: bicubic
spec:
containers:
- name: app
image: ghcr.io/saetch/deightma_bicubic_interpolation_service:latest
ports:
- containerPort: 8080
name: bicubic-p
env:
- name: DB_HOST
value: test-db
resources:
requests:
memory: "20Mi"
cpu: "10m"
limits:
memory: "100Mi"
cpu: "100m"
---
apiVersion: v1
kind: Service
metadata:
name: bicubic
spec:
selector:
app: bicubic
ports:
- name: bicubic-p
protocol: TCP
port: 8080
targetPort: bicubic-p
42 changes: 42 additions & 0 deletions deploy/deploy-coordinator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: coordinator
spec:
selector:
matchLabels:
app: coordinator
template:
metadata:
labels:
app: coordinator
spec:
containers:
- name: app
image: ghcr.io/saetch/deightma_coordinator:latest
ports:
- containerPort: 8080
name: coordinator-p
env:
- name: DB_HOST
value: test-db
resources:
requests:
memory: "20Mi"
cpu: "10m"
limits:
memory: "100Mi"
cpu: "100m"
---
apiVersion: v1
kind: Service
metadata:
name: coordinator
spec:
selector:
app: coordinator
ports:
- name: coordinator-p
protocol: TCP
port: 8080
targetPort: coordinator-p
42 changes: 42 additions & 0 deletions deploy/deploy-master.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: master
spec:
selector:
matchLabels:
app: master
template:
metadata:
labels:
app: master
spec:
containers:
- name: app
image: ghcr.io/saetch/deightma_master:latest
ports:
- containerPort: 8080
name: master-port
env:
- name: DB_HOST
value: test-db
resources:
requests:
memory: "20Mi"
cpu: "10m"
limits:
memory: "100Mi"
cpu: "100m"
---
apiVersion: v1
kind: Service
metadata:
name: master-service
spec:
selector:
app: master
ports:
- name: master-port
protocol: TCP
port: 5000
targetPort: master-port

0 comments on commit 450b221

Please sign in to comment.