Search code examples
arangodbmesos

ArangoDB API access via Mesos cluster on AWS


I have an ArangoDB cluster "framwork" running on a Mesos cluster and running on AWS. I am extremely new to Mesos.

I can access Mesos and I can access ArangoDB through the endpoint that Mesos provides:

http://mymesoscluster/service/arangodb3

I have a Java service that is not running in the Mesos cluster that I would like to use ArangoDB. What I cannot find is how to reference ArangoDB from the API perspective.

For example, the java driver code performs a login that needs a host:

@Bean
public ArangoDB arangoDB() {
    ArangoDB arangoDB = new ArangoDB.Builder()
            .host("????", 8529)
            .user("root").password( "somepassword").build();
    return arangoDB;
}

I see some Mesos docs about API access with a token Authentication HTTP API Endpoint . I do not think that that will get me past the ArangoDB driver login.

Perhaps it is not possible with the java driver?


Solution

  • You need to make the service available from outside.
    https://docs.mesosphere.com/1.11/deploying-services/expose-service/
    https://docs.mesosphere.com/1.8/usage/service-discovery/marathon-lb/marathon-lb-advanced-tutorial/
    If you want to access arangodb from inside, please be aware of authentication, SSL?. Please check back with all served services in the cluster master:5050/v1/axfr