Swarm is a web-based code review and collaboration tool for Perforce.
Questions tagged [swarm]
320 questions
0
votes
0 answers
Accessing docker compose arm variable in Docker file
My Docker compose file is as follows
environment:
external:
name: dev
services:
app:
deploy:
replicas: 1
environment:
NODE_ENV: development
Compose Swarm is as follows:
version: "3.3"
services:
…

user11380842
- 43
- 3
- 8
0
votes
1 answer
Flink TaskManager Docker Swarm doesn't recover
I'm Running a Flink v1.10 with 1 JobManager and 3 Taskmanagers in Docker Swarm, without Zookeeper. I've a Job running taking 12 Slots and i've 3 TM's with 20 Slots each (60 total).
After some tests everything went well except one test.
So, the test…

Andre Carvalho
- 11
- 2
0
votes
1 answer
Is it possible for multiple Docker Swarm Services to access an env_file that is located on a volume mount?
I am trying to use a single env_file in multiple Docker Swarm Services. The volume mount point and file are available in the container. I validated it by logging into the running container. As soon as I deploy the stack's .yml file I receive an…

Jabb
- 3,414
- 8
- 35
- 58
0
votes
1 answer
No overlay network created on worker node during docker swarm stack deploy
I have Docker swarm cluster with overlay network (name overlay-test) with single-manager and 2 worker nodes.
One of worker node contains only database server container.
When I deploy stack on cluster and my stack doesn't contains instructions to…

Alexey Shcheglov
- 1
- 1
0
votes
3 answers
Distributed Java App on Docker Swarm with Multithreading
I am migrating a Grails (2.4.4) web application (Java based) on a Docker Swarm environment (3 nodes) with a MariaDB database outside the Swarm.
On its current version, the application is hosted on a single server and instanciates a few threads (~…

Alarid
- 770
- 1
- 6
- 19
0
votes
1 answer
While draining a node during a Swarm update, how do you avoid a newly active node to receive all the rescheduled containers?
During an update (in place in this case) of our Swarm, we have to drain a node, update it, make it active again, drain the following node, etc...
It works perfectly for the first node as the load of the containers to reschedule is spread quite…

tbrouhier
- 1
- 1
0
votes
1 answer
Docker Swarm - communicate between two containers?
I created docker-compose.yml which works on my computer (local) but not work on server (docker swarm, portainer). Container nginx can`t see php-fpm.
docker-compose.yml:
version: "3"
services:
nginx:
image: nginx-php-test:8
ports:
-…

Arkadiusz G.
- 1,024
- 10
- 24
0
votes
1 answer
Docker suddenly removing volume when adding network to container
I have database container in swarm network. It has its own node and it is not changing.
The unexpected behavior has started when I add or remove some network for my db container:
For example, I added traefik network:
my_db:
volumes:
…

Eddie
- 1,436
- 5
- 24
- 42
0
votes
1 answer
Wordpress Docker: Error establishing DB connection (MYSQL)
I have been watching this before.
Moving Wordpress site to Docker: Error establishing DB connection
My Linux is centos VM, I try to create WordPress and MySQL(5.6~8).
It will be created but I can not connect DB.
This is my command (using…

MAX
- 53
- 9
0
votes
1 answer
How to run Swarm Optimization in a function presented in the same script
I want to run Swarm optimization with a function written in the same script.
rng default % For reproducibility
nvars = 2;
x = particleswarm(fun,nvars)
function val = fun(x)
val=x(1)*exp(x(2));
end
When I run this script the promp windows shows…

JuanMuñoz
- 165
- 2
- 11
0
votes
1 answer
How to use Particle Swarm Optimization in the norm of a matrix
I have the following code implementing PSO, but it is not working with the simple function: norm(A), where A is a matrix.
This is the code,
fun=@(X) norm([X(1,1),X(1,2); X(2,1), X(2,2)]);
rng default % For reproducibility
lb = [-10,-15];
ub =…

JuanMuñoz
- 165
- 2
- 11
0
votes
1 answer
How to add a new node to a mongodb replica set in docker swarm (docker compose 3.4)
I'm trying to intialize a mongo replica set mode and add two nodes(swarm services) to it, I'm using docker-compose 3.4
I'm using a script shell that I execute on an ansible playbook (version 2.7.10)
The following pieces of code are respectively the…

Samira
- 21
- 7
0
votes
1 answer
Can anyone identify the errors in Hybrid GA PSO code in matlab?
Index exceeds matrix dimensions.
Error in gapso_logic>update_lbest (line 103)
sm(1, 1)= cost_p(1, nPopSize);
Error in gapso_logic (line 46)
local_best_position = update_lbest(current_fitness(i), local_best_position, nPopSize);
Error in…

Satyam Sharma
- 5
- 3
0
votes
1 answer
Docker swarm load balancing using HTTP 503
For a project, I would like to create a docker swarm with nodes/replicas using GPUs.
Since the default way to do load balancing is round robin (and according to this link load balancing takes place on TCP layer 4),
I would like to know if it is…

x y
- 911
- 9
- 27
0
votes
0 answers
Docker swarm worker advertise wrong local address on EC2
I have a manager node with a fixed ip address, and when I join the swarm with a worker on EC2, I can see in the docker logs that the manager tries to connect to the internal ip address of the EC2 instance. According to docker, this should not happen…

likoko
- 1