减少进程限制

This commit is contained in:
2024-10-18 14:45:08 +08:00
parent 68043e5773
commit c9894d257e

View File

@@ -26,7 +26,7 @@ services:
context: ./services/paddle_services
container_name: ocr
hostname: ocr
command: [ '-w', '100', 'ocr:app', '--bind', '0.0.0.0:5001' ]
command: [ '-w', '4', 'ocr:app', '--bind', '0.0.0.0:5001' ]
deploy:
resources:
reservations:
@@ -39,7 +39,7 @@ services:
<<: *paddle_template
container_name: ie_settlement
hostname: ie_settlement
command: [ '-w', '100', 'ie_settlement:app', '--bind', '0.0.0.0:5002' ]
command: [ '-w', '5', 'ie_settlement:app', '--bind', '0.0.0.0:5002' ]
deploy:
resources:
reservations:
@@ -52,7 +52,7 @@ services:
<<: *paddle_template
container_name: ie_discharge
hostname: ie_discharge
command: [ '-w', '100', 'ie_discharge:app', '--bind', '0.0.0.0:5003' ]
command: [ '-w', '5', 'ie_discharge:app', '--bind', '0.0.0.0:5003' ]
deploy:
resources:
reservations:
@@ -65,7 +65,7 @@ services:
<<: *paddle_template
container_name: ie_cost
hostname: ie_cost
command: [ '-w', '100', 'ie_cost:app', '--bind', '0.0.0.0:5004' ]
command: [ '-w', '5', 'ie_cost:app', '--bind', '0.0.0.0:5004' ]
deploy:
resources:
reservations:
@@ -78,7 +78,7 @@ services:
<<: *paddle_template
container_name: clas_orientation
hostname: clas_orientation
command: [ '-w', '100', 'clas_orientation:app', '--bind', '0.0.0.0:5005' ]
command: [ '-w', '3', 'clas_orientation:app', '--bind', '0.0.0.0:5005' ]
deploy:
resources:
reservations:
@@ -91,7 +91,7 @@ services:
<<: *paddle_template
container_name: det_book
hostname: det_book
command: [ '-w', '100', 'det_book:app', '--bind', '0.0.0.0:5006' ]
command: [ '-w', '4', 'det_book:app', '--bind', '0.0.0.0:5006' ]
deploy:
resources:
reservations:
@@ -104,7 +104,7 @@ services:
<<: *paddle_template
container_name: dewarp
hostname: dewarp
command: [ '-w', '100', 'dewarp:app', '--bind', '0.0.0.0:5007' ]
command: [ '-w', '4', 'dewarp:app', '--bind', '0.0.0.0:5007' ]
deploy:
resources:
reservations: