Skip to content

Commit 9272131

Browse files
Alexander PatrikalakisAlexander Patrikalakis
Alexander Patrikalakis
authored and
Alexander Patrikalakis
committed
[skip ci] Dont limit r/w for DynamoDB Local (fixes amazon-archives#281)
1 parent 6146f33 commit 9272131

File tree

3 files changed

+68
-3
lines changed

3 files changed

+68
-3
lines changed

Diff for: src/test/resources/dynamodb-local-docker.properties

+32-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright 2014-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
# Copyright 2014-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License").
55
# You may not use this file except in compliance with the License.
@@ -27,4 +27,35 @@ storage.backend=com.amazon.janusgraph.diskstorage.dynamodb.DynamoDBStoreManager
2727
storage.dynamodb.client.credentials.class-name=com.amazonaws.auth.BasicAWSCredentials
2828
storage.dynamodb.client.credentials.constructor-args=access,secret
2929
storage.dynamodb.client.signing-region=us-east-1
30+
3031
storage.dynamodb.client.endpoint=http://dynamodb-local:8000
32+
33+
storage.dynamodb.stores.edgestore.initial-capacity-read=12
34+
storage.dynamodb.stores.edgestore.initial-capacity-write=12
35+
storage.dynamodb.stores.edgestore.read-rate=1000
36+
storage.dynamodb.stores.edgestore.write-rate=1000
37+
38+
storage.dynamodb.stores.graphindex.initial-capacity-read=9
39+
storage.dynamodb.stores.graphindex.initial-capacity-write=9
40+
storage.dynamodb.stores.graphindex.read-rate=1000
41+
storage.dynamodb.stores.graphindex.write-rate=1000
42+
43+
storage.dynamodb.stores.systemlog.initial-capacity-read=1
44+
storage.dynamodb.stores.systemlog.initial-capacity-write=1
45+
storage.dynamodb.stores.systemlog.read-rate=1
46+
storage.dynamodb.stores.systemlog.write-rate=1
47+
48+
storage.dynamodb.stores.janusgraph_ids.initial-capacity-read=1
49+
storage.dynamodb.stores.janusgraph_ids.initial-capacity-write=1
50+
storage.dynamodb.stores.janusgraph_ids.read-rate=1
51+
storage.dynamodb.stores.janusgraph_ids.write-rate=1
52+
53+
storage.dynamodb.stores.system_properties.initial-capacity-read=1
54+
storage.dynamodb.stores.system_properties.initial-capacity-write=1
55+
storage.dynamodb.stores.system_properties.read-rate=1
56+
storage.dynamodb.stores.system_properties.write-rate=1
57+
58+
storage.dynamodb.stores.txlog.initial-capacity-read=1
59+
storage.dynamodb.stores.txlog.initial-capacity-write=1
60+
storage.dynamodb.stores.txlog.read-rate=1
61+
storage.dynamodb.stores.txlog.write-rate=1

Diff for: src/test/resources/dynamodb-local.properties

+32-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright 2014-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
# Copyright 2014-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License").
55
# You may not use this file except in compliance with the License.
@@ -27,4 +27,35 @@ storage.backend=com.amazon.janusgraph.diskstorage.dynamodb.DynamoDBStoreManager
2727
storage.dynamodb.client.credentials.class-name=com.amazonaws.auth.BasicAWSCredentials
2828
storage.dynamodb.client.credentials.constructor-args=access,secret
2929
storage.dynamodb.client.signing-region=us-east-1
30+
3031
storage.dynamodb.client.endpoint=http://localhost:4567
32+
33+
storage.dynamodb.stores.edgestore.initial-capacity-read=12
34+
storage.dynamodb.stores.edgestore.initial-capacity-write=12
35+
storage.dynamodb.stores.edgestore.read-rate=1000
36+
storage.dynamodb.stores.edgestore.write-rate=1000
37+
38+
storage.dynamodb.stores.graphindex.initial-capacity-read=9
39+
storage.dynamodb.stores.graphindex.initial-capacity-write=9
40+
storage.dynamodb.stores.graphindex.read-rate=1000
41+
storage.dynamodb.stores.graphindex.write-rate=1000
42+
43+
storage.dynamodb.stores.systemlog.initial-capacity-read=1
44+
storage.dynamodb.stores.systemlog.initial-capacity-write=1
45+
storage.dynamodb.stores.systemlog.read-rate=1
46+
storage.dynamodb.stores.systemlog.write-rate=1
47+
48+
storage.dynamodb.stores.janusgraph_ids.initial-capacity-read=1
49+
storage.dynamodb.stores.janusgraph_ids.initial-capacity-write=1
50+
storage.dynamodb.stores.janusgraph_ids.read-rate=1
51+
storage.dynamodb.stores.janusgraph_ids.write-rate=1
52+
53+
storage.dynamodb.stores.system_properties.initial-capacity-read=1
54+
storage.dynamodb.stores.system_properties.initial-capacity-write=1
55+
storage.dynamodb.stores.system_properties.read-rate=1
56+
storage.dynamodb.stores.system_properties.write-rate=1
57+
58+
storage.dynamodb.stores.txlog.initial-capacity-read=1
59+
storage.dynamodb.stores.txlog.initial-capacity-write=1
60+
storage.dynamodb.stores.txlog.read-rate=1
61+
storage.dynamodb.stores.txlog.write-rate=1

Diff for: src/test/resources/dynamodb.properties

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright 2014-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
# Copyright 2014-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License").
55
# You may not use this file except in compliance with the License.
@@ -27,6 +27,9 @@ storage.backend=com.amazon.janusgraph.diskstorage.dynamodb.DynamoDBStoreManager
2727
storage.dynamodb.client.credentials.class-name=com.amazonaws.auth.DefaultAWSCredentialsProviderChain
2828
storage.dynamodb.client.credentials.constructor-args=
2929
storage.dynamodb.client.signing-region=us-west-2
30+
31+
32+
3033
storage.dynamodb.stores.edgestore.initial-capacity-read=12
3134
storage.dynamodb.stores.edgestore.initial-capacity-write=12
3235
storage.dynamodb.stores.edgestore.read-rate=12

0 commit comments

Comments
 (0)