0xarchit commited on
Commit
a6d64b8
·
1 Parent(s): 080d8a1

fix port issue

Browse files
bin/run_api_testing.sh CHANGED
@@ -1,5 +1,4 @@
1
  #!/bin/bash
2
  set -euo pipefail
3
 
4
- # Run api-testing and prefix logs with [api-testing]
5
  exec bash -c 'set -o pipefail; BIND_ADDR=127.0.0.1:9090 /app/api-testing/api-testing 2>&1 | sed -u "s/^/[api-testing] /"; exit ${PIPESTATUS[0]}'
 
1
  #!/bin/bash
2
  set -euo pipefail
3
 
 
4
  exec bash -c 'set -o pipefail; BIND_ADDR=127.0.0.1:9090 /app/api-testing/api-testing 2>&1 | sed -u "s/^/[api-testing] /"; exit ${PIPESTATUS[0]}'
bin/run_control_plane.sh CHANGED
@@ -1,6 +1,6 @@
1
  #!/bin/bash
2
  set -euo pipefail
3
 
4
- # Run control-plane (uvicorn) and prefix logs with [control-plane]
5
  cd /app/control-plane
6
- exec bash -c 'set -o pipefail; PYTHONPATH=/app/control-plane /opt/cp_venv/bin/python -u -m uvicorn app.main:app --host 0.0.0.0 --port 7860 --workers 4 2>&1 | sed -u "s/^/[control-plane] /"; exit ${PIPESTATUS[0]}'
 
 
1
  #!/bin/bash
2
  set -euo pipefail
3
 
 
4
  cd /app/control-plane
5
+ export PORT=7860
6
+ exec bash -c 'set -o pipefail; PYTHONPATH=/app/control-plane /opt/cp_venv/bin/python -u -m uvicorn app.main:app --host 0.0.0.0 --port ${PORT} --workers 4 2>&1 | sed -u "s/^/[control-plane] /"; exit ${PIPESTATUS[0]}'
bin/run_ingest.sh CHANGED
@@ -1,5 +1,5 @@
1
  #!/bin/bash
2
  set -euo pipefail
3
 
4
- # Run ingest-service and prefix logs with [ingest]
5
  exec bash -c 'set -o pipefail; /app/ingest-service/ingest-service 2>&1 | sed -u "s/^/[ingest] /"; exit ${PIPESTATUS[0]}'
 
1
  #!/bin/bash
2
  set -euo pipefail
3
 
4
+ export PORT=8080
5
  exec bash -c 'set -o pipefail; /app/ingest-service/ingest-service 2>&1 | sed -u "s/^/[ingest] /"; exit ${PIPESTATUS[0]}'
bin/run_ml.sh CHANGED
@@ -1,6 +1,6 @@
1
  #!/bin/bash
2
  set -euo pipefail
3
 
4
- # Run ML service and prefix logs with [ml]
5
  cd /app/ml-service
 
6
  exec bash -c 'set -o pipefail; PYTHONPATH=/app/ml-service /opt/ml_venv/bin/python -u -m app.main 2>&1 | sed -u "s/^/[ml] /"; exit ${PIPESTATUS[0]}'
 
1
  #!/bin/bash
2
  set -euo pipefail
3
 
 
4
  cd /app/ml-service
5
+ export PORT=8001
6
  exec bash -c 'set -o pipefail; PYTHONPATH=/app/ml-service /opt/ml_venv/bin/python -u -m app.main 2>&1 | sed -u "s/^/[ml] /"; exit ${PIPESTATUS[0]}'
supervisord.conf CHANGED
@@ -6,6 +6,8 @@ logfile=/dev/null
6
  command=/app/bin/run_ingest.sh
7
  stdout_logfile=/dev/fd/1
8
  stderr_logfile=/dev/fd/2
 
 
9
  autorestart=true
10
  startretries=4
11
  startsecs=3
@@ -17,6 +19,8 @@ command=/app/bin/run_ml.sh
17
  environment=PYTHONPATH="/app/ml-service"
18
  stdout_logfile=/dev/fd/1
19
  stderr_logfile=/dev/fd/2
 
 
20
  autorestart=true
21
  startretries=4
22
  startsecs=3
@@ -27,6 +31,8 @@ command=/app/bin/run_api_testing.sh
27
  environment=BIND_ADDR="127.0.0.1:9090"
28
  stdout_logfile=/dev/fd/1
29
  stderr_logfile=/dev/fd/2
 
 
30
  autorestart=true
31
  startretries=4
32
  startsecs=3
@@ -38,6 +44,8 @@ command=/app/bin/run_control_plane.sh
38
  environment=PYTHONPATH="/app/control-plane"
39
  stdout_logfile=/dev/fd/1
40
  stderr_logfile=/dev/fd/2
 
 
41
  autorestart=true
42
  startretries=4
43
  startsecs=3
 
6
  command=/app/bin/run_ingest.sh
7
  stdout_logfile=/dev/fd/1
8
  stderr_logfile=/dev/fd/2
9
+ stdout_logfile_maxbytes=0
10
+ stderr_logfile_maxbytes=0
11
  autorestart=true
12
  startretries=4
13
  startsecs=3
 
19
  environment=PYTHONPATH="/app/ml-service"
20
  stdout_logfile=/dev/fd/1
21
  stderr_logfile=/dev/fd/2
22
+ stdout_logfile_maxbytes=0
23
+ stderr_logfile_maxbytes=0
24
  autorestart=true
25
  startretries=4
26
  startsecs=3
 
31
  environment=BIND_ADDR="127.0.0.1:9090"
32
  stdout_logfile=/dev/fd/1
33
  stderr_logfile=/dev/fd/2
34
+ stdout_logfile_maxbytes=0
35
+ stderr_logfile_maxbytes=0
36
  autorestart=true
37
  startretries=4
38
  startsecs=3
 
44
  environment=PYTHONPATH="/app/control-plane"
45
  stdout_logfile=/dev/fd/1
46
  stderr_logfile=/dev/fd/2
47
+ stdout_logfile_maxbytes=0
48
+ stderr_logfile_maxbytes=0
49
  autorestart=true
50
  startretries=4
51
  startsecs=3