Closed montigab78 closed 7 months ago
@montigab78 Sorry for taking so long to answer. We do actually have this option already, although it is kind of burried deep. The way you set the LMDB path is through ShardOptions.DistributedData.Durable.Lmdb.Directory
.
"-{system_name}-{replicator-name}-{cluster-port}"
Hello, in my organization we use cluster sharding with DData storage. Let'say we have this configuration: configurationBuilder => { configurationBuilder.WithShardRegion("tenants", (system, registry, resolver) =>
{
bla bla...
}, new TenantMessageRouter(),
new ShardOptions()
{
Role = TenantActorProps.ActorRole,
RememberEntities = true,
StateStoreMode = StateStoreMode.DData,
RememberEntitiesStore = RememberEntitiesStore.DData,
});
}
When this is specified, a database named data.mdb gets created in my project_dir\ddata-projectname-webReplicator-9210 (in which 9210 is the port number).
However, when this service is installed in production as windows service, the same folder is created in C:\Windows\System32
It would be useful to be able to configure the destination folder.
Thanks