Comments (13)
This comes as output in the docker container:
docker volume create arangodb2 && \
docker run -it --name=adb2 --rm -p 4005:4000 -v arangodb2:/data \
-v /var/run/docker.sock:/var/run/docker.sock arangodb/arangodb-starter \
--dockerContainer=adb2 --ownAddress= --join=
docker volume create arangodb3 && \
docker run -it --name=adb3 --rm -p 4010:4000 -v arangodb3:/data \
-v /var/run/docker.sock:/var/run/docker.sock arangodb/arangodb-starter \
--dockerContainer=adb3 --ownAddress= --join=
from arangodb.
arangodb/arangodb-starter should actually be the image name of the parent container or dynamically assignable
from arangodb.
Note that this output is only there to give you an advise for what to do.
If you package the starter in another images, it should be no problem to use that image name instead (as long as the starter is the entrypoint).
Now we can probably detect the image name of the containing docker container and use that.
We'll look into that.
from arangodb.
I don'T understand this output is not actually executed on the host ?
Why those command should be entered manually ?
from arangodb.
The commands should be executed on different hosts to achieve high availability of your cluster.
If you want a local cluster for testing purposes (WITHOUT High availability), use the --starter.local
option.
from arangodb.
I was asking myself why do I need to manually do that when starter can send a command to the swarm cluster and tell other nodes to run the commands...
I think that that this is not 21th century thinking... There is a lack of design in this solution.
If you can already communicate with docker then why not take advantage of the power of docker swarm
from arangodb.
That would work on docker running in swarm mode.
But not when running servers with individual docker instances
from arangodb.
There is no point of running the starter with individual instances its purpose is for clustering and swarming
from arangodb.
I disagree on that. There are plenty of companies that use lots of docker servers, without using swarm. Instead they use some other orchestration system.
That does not mean that docker swarm would make an interesting addition for the starter. We'll discuss what to do with that.
from arangodb.
Alright fair enough... I think that what is missing for arango-starter is video tutorial with demo instead of text file and README.MD. It is a product on its own and needs care and introduction.
Thanx a lot have a good day
from arangodb.
I'm trying to build a cluster on 3 physical docker hosts. I started arangodb-starter on the first host 192.168.1.98 with parameters:
-p 8528:8528
--starter.address=192.168.1.98 --starter.join=192.168.1.98
Then I start another stater instance on another host 192.168.1.99 with parameters:
-p 8528:8528
--starter.address=192.168.1.99 --starter.join=192.168.1.98
Getting this on the second agency container:
17T21:35:06Z [1] ERROR {cluster} cannot create connection to server '' at endpoint 'tcp://192.168.1.98:8541'
I noticed that the first agent is listening port 8531, how can I change the port numbers for automatically created containers? Or could you advise, how to build a cluster across several physical hosts. I need authentication and TLS as well.
from arangodb.
@sloniki Make sure to leave out the --starter.join
option for the first starter.
About the port numbers, they are automatically derived from a base port (--starter.port
).
The coordinator gets an offset of 1, the dbserver and offset of 2 & the agent an offset of 3.
You cannot change these offsets, but you can change the base port.
E.g. --starter.port=1234
will result in ports 1234 (for the starter), 1235 (for the coordinator) and so on.
from arangodb.
@sloniki TLS can be activated by the --ssl.keyfile
option, for authentication use the --auth.jwtsecret
option.
from arangodb.
Related Issues (20)
- starter on windows process control HOT 1
- restart coordinator only node will get error: "data/ENGINE: no such file or directory"
- After recovery agency, the db server and coordinator meet error "ERROR [92522] {agencycomm} Cannot find an agency persisted in RAFT 8|" HOT 1
- Starter should process version control check with empty configuration
- Implement `--starter.force-minor-upgrade` option to let overcome limitations
- Single server rolling upgrade commander exits early
- --starter.port of "leader" starter not persisted across restarts
- arangodb start command bug: different results of different order in the whole command HOT 2
- arangorestore command terminated arangodb process
- Support go1.16 and Apple Silicon HOT 2
- Adjust terminology: master/slave => leader/follower
- Starter usability improvements: arangod_command.txt
- Starter usability: show arangod log errors HOT 1
- File descriptors and ulimits
- Upgrade from 3.6.5 to 3.7.11 fails. HOT 2
- Failed quick restart attempts
- Entrypoint HOT 1
- Is the starter tool in the compilation result of ArangoDB?
- Improve warning "Flag --all.xxx has been deprecated, Deprecated" HOT 1
- documentation of alert rules HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arangodb.