arangodb

Auto scaling resources for foxx/arangodb on mesos

时光怂恿深爱的人放手 提交于 2019-12-11 18:12:48
问题 Is it possible to separately autoscale foxx and arangodb independently of each other in liu of trying to strike balance, and sure enough autoscale right amount of ram/storage/cpu? Simply if it's a good idea to try and autoscale deployment is answer good enough. 回答1: You are not very specific about what you mean by saying "scaling ArangoDB". In general, you can add more DB server nodes (primaries) independent of the number of coordinator nodes, if that is what you're asking. Foxx is executed

ArangoDB Graph Traversal fails inspite of increased heap size

心不动则不痛 提交于 2019-12-11 17:03:16
问题 ArangoDB Version: 3.3.14 Heap Statistics for application: { total_heap_size: 39108608, total_heap_size_executable: 3670016, total_physical_size: 37433512, total_available_size: 8735662896, used_heap_size: 28891504, heap_size_limit: 8769069275, malloced_memory: 16384, peak_malloced_memory: 168484640, does_zap_garbage: 0 } I have a traversal api which traverses through 3 vertices and returns around 300 document vertices. For 200 I get the proper response but when I increase the number of

define geo index in ArangoDB

倖福魔咒の 提交于 2019-12-11 12:15:52
问题 I have a data structure like below. how can I define a geo index for that structure? { "currentGeoLocation": { "latitude": -10, "longitude": 1 } } I tried these command: 1- db.test.ensureIndex({ type: "geo", fields: [ "currentGeoLocation[latitude]","currentGeoLocation[longitude]" ] }); 2- db.test.ensureIndex({ type: "geo", fields: [ "currentGeoLocation.latitude","currentGeoLocation.longitude" ] }); but I think none works correctly. because after I search the nearest items, I got []. whats the

Multi-tenancy with a separate database per customer, using Spring Data ArangoDB

风格不统一 提交于 2019-12-11 12:12:41
问题 So far, the only way I know to set the name of a database, to use with Spring Data ArangoDB, is by hardcoding it in a database() method while extending AbstractArangoConfiguration , like so: @Configuration @EnableArangoRepositories(basePackages = { "com.company.mypackage" }) public class MyConfiguration extends AbstractArangoConfiguration { @Override public ArangoDB.Builder arango() { return new ArangoDB.Builder(); } @Override public String database() { // Name of the database to be used

Installing ArangoDB Foxx via RESTful API via Python requests results in 'unauthorized' error

跟風遠走 提交于 2019-12-11 11:53:31
问题 We use ArangoDB and Python using the requests module to use Arango's HTTP API. I'm having authorisation problems deploying a Foxx app programically via the HTTP API which we'd like to do as part of our automated testing process. The only program example I can find of uploading an app appears to use obsolete routes. I can upload the zip: http://mydev:8529/_db/mydb/_api/upload I get back: {"filename": "uploads/tmp-13-718410"} ...and the file is there. But then trying this with the post data {

“not authorized to execute this request” using the arangodb java driver

北慕城南 提交于 2019-12-11 08:30:48
问题 I want to use the java driver for ArangoDB in a Maven project on Eclipse. I am trying to follow the tutorial for the java driver for ArangoDB available here, but I cannot even get the simpler application to work, even starting from a clean project. main.java: package test; import com.arangodb.ArangoDB; public class main { public static void main(String[] args) { ArangoDB arangoDB = new ArangoDB.Builder().build(); arangoDB.createDatabase("myDatabase"); } } pom.xml: <project xmlns="http://maven

ArangoDB Cursor Timeout

半城伤御伤魂 提交于 2019-12-11 07:40:59
问题 Using ArangoDB 2.3.1. It seems my cursors are expiring within a couple minutes. I would like them to last for an hour. I've set up my AQL query object with the TTL parameter as follows: { "query": 'removed actual query', "count": true, "batchSize": 5, "ttl": 3600000 } My understanding is that the TTL parameter should tell the server to keep the server for 3600000 milliseconds or 1 hour. But it expires within about 60 seconds. In fact, I've tried changing the TTL to several different numbers

ArangoDB Not Using Index During Traversal

耗尽温柔 提交于 2019-12-11 07:12:37
问题 I have a simple graph traversal query: FOR e in 0..3 ANY 'Node/5025926' Edge FILTER e.ModelType == "A.Model" && e.TargetType == "A.Target" && e.SourceType == "A.Source" RETURN e The 'Edge' edge collection has a hash index defined for attributes ModelType, TargetType, SourceType, in that order. When checking the execution plan, the results are: Query string: FOR e in 0..3 ANY 'Node/5025926' Edge FILTER e.ModelType == "A.Model" && e.TargetType == "A.Target" && e.SourceType == "A.Source" RETURN

Running Arango Shell on DC/OS cluster

江枫思渺然 提交于 2019-12-11 06:35:23
问题 I have just set up a DC/OS cluster via Microsoft Azure, and installed Arango 3.0 on the cluster using the DC/OS dashboard (via the ssh tunnel). I am able to SSH into the cluster and communicate with the Arango cluster: $ curl --dump - http://localhost:8529/_api/gharial HTTP/1.1 200 OK Content-Type: application/json; charset=utf-8 Server: ArangoDB Connection: Keep-Alive Content-Length: 38 {"error":false,"graphs":[],"code":200} Question #1 : Even after I insert a graph using the POST requested

Sending HTTP Post request from node to Foxx service (ArangoDB)

ε祈祈猫儿з 提交于 2019-12-11 06:08:15
问题 I am trying to send a post request from a node + express server to my Foxx service on Arangodb. On the node side : var route = arangopi + '/edge/' + col.name ; var body = {data: data, from: fromId, to: toId} ; console.log('|| body :', route, body) ; >> || body : http//XXX/_db/my-DB/my-foxx-service/path/to/visitedBy { data: { isBackup: true, text: '', isHint: true, continuance: 3441.5 }, from: 'Drop/27237133', to: 'Bot/41116378' } return requestify.post (route, body) On the Foxx side, I