Skip to content

Commit

Permalink
EFRS-1265: Renamed connection/read timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
VolodymyrBushko committed Jul 22, 2022
1 parent 4987fbc commit 4a14a1b
Show file tree
Hide file tree
Showing 20 changed files with 44 additions and 44 deletions.
4 changes: 2 additions & 2 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ max_file_size=5MB
max_request_size=10M
uwsgi_processes=2
uwsgi_threads=1
feign_faces_connection_timeout=10000
feign_faces_read_timeout=60000
connection_timeout=10000
read_timeout=60000
ADMIN_VERSION=1.0.0
API_VERSION=1.0.0
FE_VERSION=1.0.0
Expand Down
4 changes: 2 additions & 2 deletions custom-builds/FaceNet/.env
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ max_file_size=5MB
max_request_size=10M
uwsgi_processes=2
uwsgi_threads=1
feign_faces_connection_timeout=10000
feign_faces_read_timeout=60000
connection_timeout=10000
read_timeout=60000
ADMIN_VERSION=1.0.0
API_VERSION=1.0.0
FE_VERSION=1.0.0
Expand Down
4 changes: 2 additions & 2 deletions custom-builds/FaceNet/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ services:
- SAVE_IMAGES_TO_DB=${save_images_to_db}
- MAX_FILE_SIZE=${max_file_size}
- MAX_REQUEST_SIZE=${max_request_size}B
- FEIGN_FACES_CONNECTION_TIMEOUT=${feign_faces_connection_timeout}
- FEIGN_FACES_READ_TIMEOUT=${feign_faces_read_timeout}
- CONNECTION_TIMEOUT=${connection_timeout}
- READ_TIMEOUT=${read_timeout}

compreface-fe:
image: ${registry}compreface-fe:${FE_VERSION}
Expand Down
4 changes: 2 additions & 2 deletions custom-builds/Mobilenet-gpu/.env
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ max_file_size=5MB
max_request_size=10M
uwsgi_processes=1
uwsgi_threads=1
feign_faces_connection_timeout=10000
feign_faces_read_timeout=60000
connection_timeout=10000
read_timeout=60000
ADMIN_VERSION=1.0.0
API_VERSION=1.0.0
FE_VERSION=1.0.0
Expand Down
4 changes: 2 additions & 2 deletions custom-builds/Mobilenet-gpu/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ services:
- SAVE_IMAGES_TO_DB=${save_images_to_db}
- MAX_FILE_SIZE=${max_file_size}
- MAX_REQUEST_SIZE=${max_request_size}B
- FEIGN_FACES_CONNECTION_TIMEOUT=${feign_faces_connection_timeout}
- FEIGN_FACES_READ_TIMEOUT=${feign_faces_read_timeout}
- CONNECTION_TIMEOUT=${connection_timeout}
- READ_TIMEOUT=${read_timeout}

compreface-fe:
image: ${registry}compreface-fe:${FE_VERSION}
Expand Down
4 changes: 2 additions & 2 deletions custom-builds/Mobilenet/.env
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ max_file_size=5MB
max_request_size=10M
uwsgi_processes=2
uwsgi_threads=1
feign_faces_connection_timeout=10000
feign_faces_read_timeout=60000
connection_timeout=10000
read_timeout=60000
ADMIN_VERSION=1.0.0
API_VERSION=1.0.0
FE_VERSION=1.0.0
Expand Down
4 changes: 2 additions & 2 deletions custom-builds/Mobilenet/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ services:
- SAVE_IMAGES_TO_DB=${save_images_to_db}
- MAX_FILE_SIZE=${max_file_size}
- MAX_REQUEST_SIZE=${max_request_size}B
- FEIGN_FACES_CONNECTION_TIMEOUT=${feign_faces_connection_timeout}
- FEIGN_FACES_READ_TIMEOUT=${feign_faces_read_timeout}
- CONNECTION_TIMEOUT=${connection_timeout}
- READ_TIMEOUT=${read_timeout}

compreface-fe:
image: ${registry}compreface-fe:${FE_VERSION}
Expand Down
4 changes: 2 additions & 2 deletions custom-builds/Single-Docker-File/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ ENV APPERY_API_KEY ${APPERY_API_KEY}
ENV API_JAVA_OPTS=-Xmx4g
ENV SAVE_IMAGES_TO_DB=true
ENV API_PORT=8080
ENV FEIGN_FACES_CONNECTION_TIMEOUT=10000
ENV FEIGN_FACES_READ_TIMEOUT=60000
ENV CONNECTION_TIMEOUT=10000
ENV READ_TIMEOUT=60000

COPY --from=api /home/app.jar /app/api/app.jar

Expand Down
4 changes: 2 additions & 2 deletions custom-builds/SubCenter-ArcFace-r100-gpu/.env
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ max_file_size=5MB
max_request_size=10M
uwsgi_processes=2
uwsgi_threads=1
feign_faces_connection_timeout=10000
feign_faces_read_timeout=60000
connection_timeout=10000
read_timeout=60000
ADMIN_VERSION=1.0.0
API_VERSION=1.0.0
FE_VERSION=1.0.0
Expand Down
4 changes: 2 additions & 2 deletions custom-builds/SubCenter-ArcFace-r100-gpu/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ services:
- SAVE_IMAGES_TO_DB=${save_images_to_db}
- MAX_FILE_SIZE=${max_file_size}
- MAX_REQUEST_SIZE=${max_request_size}B
- FEIGN_FACES_CONNECTION_TIMEOUT=${feign_faces_connection_timeout}
- FEIGN_FACES_READ_TIMEOUT=${feign_faces_read_timeout}
- CONNECTION_TIMEOUT=${connection_timeout}
- READ_TIMEOUT=${read_timeout}

compreface-fe:
image: ${registry}compreface-fe:${FE_VERSION}
Expand Down
4 changes: 2 additions & 2 deletions custom-builds/SubCenter-ArcFace-r100/.env
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ max_file_size=5MB
max_request_size=10M
uwsgi_processes=2
uwsgi_threads=1
feign_faces_connection_timeout=10000
feign_faces_read_timeout=60000
connection_timeout=10000
read_timeout=60000
ADMIN_VERSION=1.0.0
API_VERSION=1.0.0
FE_VERSION=1.0.0
Expand Down
4 changes: 2 additions & 2 deletions custom-builds/SubCenter-ArcFace-r100/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ services:
- SAVE_IMAGES_TO_DB=${save_images_to_db}
- MAX_FILE_SIZE=${max_file_size}
- MAX_REQUEST_SIZE=${max_request_size}B
- FEIGN_FACES_CONNECTION_TIMEOUT=${feign_faces_connection_timeout}
- FEIGN_FACES_READ_TIMEOUT=${feign_faces_read_timeout}
- CONNECTION_TIMEOUT=${connection_timeout}
- READ_TIMEOUT=${read_timeout}

compreface-fe:
image: ${registry}compreface-fe:${FE_VERSION}
Expand Down
4 changes: 2 additions & 2 deletions dev/.env
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ max_file_size=5MB
max_request_size=10M
uwsgi_processes=2
uwsgi_threads=1
feign_faces_connection_timeout=10000
feign_faces_read_timeout=60000
connection_timeout=10000
read_timeout=60000
ADMIN_VERSION=latest
API_VERSION=latest
FE_VERSION=latest
Expand Down
4 changes: 2 additions & 2 deletions dev/docker-compose-gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ services:
- SAVE_IMAGES_TO_DB=${save_images_to_db}
- MAX_FILE_SIZE=${max_file_size}
- MAX_REQUEST_SIZE=${max_request_size}B
- FEIGN_FACES_CONNECTION_TIMEOUT=${feign_faces_connection_timeout}
- FEIGN_FACES_READ_TIMEOUT=${feign_faces_read_timeout}
- CONNECTION_TIMEOUT=${connection_timeout}
- READ_TIMEOUT=${read_timeout}

compreface-fe:
image: ${registry}compreface-fe:${FE_VERSION}
Expand Down
4 changes: 2 additions & 2 deletions dev/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ services:
- SAVE_IMAGES_TO_DB=${save_images_to_db}
- MAX_FILE_SIZE=${max_file_size}
- MAX_REQUEST_SIZE=${max_request_size}B
- FEIGN_FACES_CONNECTION_TIMEOUT=${feign_faces_connection_timeout}
- FEIGN_FACES_READ_TIMEOUT=${feign_faces_read_timeout}
- CONNECTION_TIMEOUT=${connection_timeout}
- READ_TIMEOUT=${read_timeout}

compreface-fe:
image: ${registry}compreface-fe:${FE_VERSION}
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ services:
- SAVE_IMAGES_TO_DB=${save_images_to_db}
- MAX_FILE_SIZE=${max_file_size}
- MAX_REQUEST_SIZE=${max_request_size}B
- FEIGN_FACES_CONNECTION_TIMEOUT=${feign_faces_connection_timeout}
- FEIGN_FACES_READ_TIMEOUT=${feign_faces_read_timeout}
- CONNECTION_TIMEOUT=${connection_timeout}
- READ_TIMEOUT=${read_timeout}

compreface-fe:
restart: always
Expand Down
6 changes: 3 additions & 3 deletions java/admin/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ app:
url: https://api.appery.io/rest/1/db/collections
api-key: ${APPERY_API_KEY:#{null}}
faces:
connect-timeout: ${FEIGN_FACES_CONNECTION_TIMEOUT:10000}
read-timeout: ${FEIGN_FACES_READ_TIMEOUT:60000}
connect-timeout: ${CONNECTION_TIMEOUT:10000}
read-timeout: ${READ_TIMEOUT:60000}
retryer:
max-attempts: ${FEIGN_FACES_RETRYER_MAX_ATTEMPTS:1}
max-attempts: ${MAX_ATTEMPTS:1}

spring:
profiles:
Expand Down
6 changes: 3 additions & 3 deletions java/admin/src/test/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ app:
url: https://localhost/rest/1/db/collections
api-key: ${APPERY_API_KEY:#{null}}
faces:
connect-timeout: ${FEIGN_FACES_CONNECTION_TIMEOUT:10000}
read-timeout: ${FEIGN_FACES_READ_TIMEOUT:60000}
connect-timeout: ${CONNECTION_TIMEOUT:10000}
read-timeout: ${READ_TIMEOUT:60000}
retryer:
max-attempts: ${FEIGN_FACES_RETRYER_MAX_ATTEMPTS:1}
max-attempts: ${MAX_ATTEMPTS:1}

spring:
servlet:
Expand Down
6 changes: 3 additions & 3 deletions java/api/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ app:
url: https://api.appery.io/rest/1/db/collections
api-key: ${APPERY_API_KEY:#{null}}
faces:
connect-timeout: ${FEIGN_FACES_CONNECTION_TIMEOUT:10000}
read-timeout: ${FEIGN_FACES_READ_TIMEOUT:60000}
connect-timeout: ${CONNECTION_TIMEOUT:10000}
read-timeout: ${READ_TIMEOUT:60000}
retryer:
max-attempts: ${FEIGN_FACES_RETRYER_MAX_ATTEMPTS:1}
max-attempts: ${MAX_ATTEMPTS:1}

---

Expand Down
6 changes: 3 additions & 3 deletions java/api/src/test/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ app:
url: https://localhost/rest/1/db/collections
api-key: ${APPERY_API_KEY:#{null}}
faces:
connect-timeout: ${FEIGN_FACES_CONNECTION_TIMEOUT:10000}
read-timeout: ${FEIGN_FACES_READ_TIMEOUT:60000}
connect-timeout: ${CONNECTION_TIMEOUT:10000}
read-timeout: ${READ_TIMEOUT:60000}
retryer:
max-attempts: ${FEIGN_FACES_RETRYER_MAX_ATTEMPTS:1}
max-attempts: ${MAX_ATTEMPTS:1}

statistic:
model:
Expand Down

0 comments on commit 4a14a1b

Please sign in to comment.