The source code for this project is available on my GitHub:
Dynamic Thread Pool Repository
This document provides step-by-step instructions to deploy and run the Dynamic Thread Pool system using prebuilt Docker images.
Before proceeding, ensure you have the following installed on your system:
Docker
docker --version
Docker Compose
docker-compose --version
Pull the required Docker images from Docker Hub:
docker pull makiato1999/dynamic-thread-pool:dev-ops-admin
docker pull makiato1999/dynamic-thread-pool:dev-ops-test
docker pull makiato1999/dynamic-thread-pool:redis
docker pull makiato1999/dynamic-thread-pool:redis-commander
Create a docker-compose.yml file with the following content:
version: '3.9'
services:
redis:
image: makiato1999/dynamic-thread-pool:redis
container_name: redis
restart: always
hostname: redis
ports:
- 16379:6379
networks:
- my-network
redis-admin:
image: makiato1999/dynamic-thread-pool:redis-commander
container_name: redis-admin
hostname: redis-commander
restart: always
ports:
- 8081:8081
environment:
- REDIS_HOSTS=local:redis:6379
networks:
- my-network
admin:
image: makiato1999/dynamic-thread-pool:dev-ops-admin
container_name: admin
restart: always
ports:
- 8090:8090
environment:
SPRING_REDIS_HOST: redis
SPRING_REDIS_PORT: 6379
networks:
- my-network
test:
image: makiato1999/dynamic-thread-pool:dev-ops-test
container_name: test
restart: always
ports:
- 8080:8080
environment:
SPRING_REDIS_HOST: redis
SPRING_REDIS_PORT: 6379
ADMIN_HOST: admin
ADMIN_PORT: 8090
networks:
- my-network
networks:
my-network:
driver: bridge
Run the following command to start all services:
docker-compose up -d
This will start the following services:
Access the Redis administration interface at: http://localhost:8081 Use this tool to monitor and manage Redis data.
Base URL: http://localhost:8090/api/v1/dynamic/thread/pool/ Available Endpoints: Query Thread Pools: Retrieve a list of thread pools.
GET /query_thread_pool_list
Query Thread Pool Config: Retrieve the configuration of a specific thread pool.
GET /query_thread_pool_config?appName=<app_name>&threadPoolName=<pool_name>
Update Thread Pool Config: Update the configuration of a thread pool.
POST /update_thread_pool_config
The frontend dashboard is available in the docs/front directory of the repository. Serve it locally using any HTTP server. For example:
cd /path/to/docs/front
python3 -m http.server 8082
Access the frontend at: http://localhost:8082
To stop all running containers:
docker-compose down
If you need to remove local Docker images:
List all images:
docker images
Remove specific images:
docker image rm <image_name>
Content type
Image
Digest
sha256:8e32502b5…
Size
42.3 MB
Last updated
over 1 year ago
docker pull makiato1999/dynamic-thread-pool:redis-commander