简体   繁体   English

将多存储与标量 DB 一起使用时如何配置 Dynamo DB Local 的端点覆盖

[英]How to configure Dynamo DB Local's Endpoint Override when using multi-storage with Scalar DB

In order to use multi-storage in Scalar DB, I am implementing it with MySQL and Dynamo DB Local, but the Endpoint Override setting for Dynamo DB Local does not work.为了在标量 DB 中使用多存储,我使用 MySQL 和 Dynamo DB Local 实现它,但是 Dynamo DB Local 的端点覆盖设置不起作用。

I have configured the following settings, but are they correct?我已经配置了以下设置,但它们是否正确?

## Dynamo DB for the transaction tables
scalar.db.multi_storage.storages.dynamo.storage=dynamo
scalar.db.multi_storage.storages.dynamo.contact_points=ap-northeast-1
scalar.db.multi_storage.storages.dynamo.username=fakeMyKeyId
scalar.db.multi_storage.storages.dynamo.password=fakeMyKeyId
scalar.db.multi_storage.storages.dynamo.contact_port=8000
scalar.db.multi_storage.storages.dynamo.endpoint-override=http://localhost:8000

The format of the storage definition in Multi-storage configuration is as follows:多存储配置中存储定义的格式如下:

scalar.db.multi_storage.storages.<storage name>.<property name without the prefix 'scalar.db.'>"

For example, if you want to specify the scalar.db.contact_points property for the cassandra storage, you can specify scalar.db.multi_storage.storages.cassandra.contact_points .例如,如果要为cassandra存储指定scalar.db.contact_points属性,则可以指定scalar.db.multi_storage.storages.cassandra.contact_points

In your case, the storage name is dynamo , and you want to specify the scalar.db.dymano.endpoint-override property, so you need to specify scalar.db.multi_storage.storages.dynamo.dynamo.endpoint-override as follows:在您的情况下,存储名称是dynamo ,并且您想要指定scalar.db.dymano.endpoint-override属性,因此您需要指定scalar.db.multi_storage.storages.dynamo.dynamo.endpoint-override如下:

scalar.db.multi_storage.storages.dynamo.dynamo.endpoint-override=http://localhost:8000

Please see the following document for the details: https://github.com/scalar-labs/scalardb/blob/master/docs/multi-storage-transactions.md详情请看以下文档: https : //github.com/scalar-labs/scalardb/blob/master/docs/multi-storage-transactions.md

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM