https://github.com/padcom/docker-swarm-perf-test
https://github.com/padcom/docker-swarm-perf-test
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/padcom/docker-swarm-perf-test
- Owner: padcom
- Created: 2022-01-23T15:11:19.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-23T15:19:12.000Z (over 4 years ago)
- Last Synced: 2025-01-04T13:40:11.132Z (over 1 year ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker Swarm vs Node.js cluster performance test
## Steps to run the test
1. Install nvm
2. Using nvm install node 17.4.0
3. Install Docker
4. Install Docker Compose 2.0
5. Create Docker registry
```
$ docker service create --name registry --publish published=5000,target=5000 registry:2
```
6. Build the application's container
```
$ docker compose build
```
7. Publish application container image
```
$ docker compose push
```
8. Initialize Docker Swarm
```
$ docker swarm init --advertise-addr
```
9. Deploy the stack to Docker Swarm
```
$ docker stack deploy --compose-file docker-compose.yml demo
```
10. Scale the application
```
$ docker service scale demo_web=16
```