Giter VIP home page Giter VIP logo

Comments (13)

al-sabr avatar al-sabr commented on May 30, 2024

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.

al-sabr avatar al-sabr commented on May 30, 2024

arangodb/arangodb-starter should actually be the image name of the parent container or dynamically assignable

from arangodb.

ewoutp avatar ewoutp commented on May 30, 2024

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.

al-sabr avatar al-sabr commented on May 30, 2024

I don'T understand this output is not actually executed on the host ?

Why those command should be entered manually ?

from arangodb.

ewoutp avatar ewoutp commented on May 30, 2024

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.

al-sabr avatar al-sabr commented on May 30, 2024

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.

ewoutp avatar ewoutp commented on May 30, 2024

That would work on docker running in swarm mode.
But not when running servers with individual docker instances

from arangodb.

al-sabr avatar al-sabr commented on May 30, 2024

There is no point of running the starter with individual instances its purpose is for clustering and swarming

from arangodb.

ewoutp avatar ewoutp commented on May 30, 2024

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.

al-sabr avatar al-sabr commented on May 30, 2024

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.

sloniki avatar sloniki commented on May 30, 2024

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.

ewoutp avatar ewoutp commented on May 30, 2024

@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.

ewoutp avatar ewoutp commented on May 30, 2024

@sloniki TLS can be activated by the --ssl.keyfile option, for authentication use the --auth.jwtsecret option.

from arangodb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.