You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actually, the crud-service deletes and creates indexes at runtime on the configured database.
By default, if not specified on the MONGODB connection string, all operations are done on the primary replica set.
When the primary set is required to use a high amount of memory/cpu, a crud-service that starts up and connects to it may increase the operation load on the primary replica set and slow down the whole infrastructure.
Desired solution
At runtime is possible to switch the type of replica set the MongoDB client is used with the method setReadPreference('<replica set type>') from the MongoDbClient.
So I expect that the crud-service can switch the creation/deletion of indexes on the secondary replica set and after the creation/deletion of indexes is completed can return to the main one to perform the operation submitted by the users.
The text was updated successfully, but these errors were encountered:
Feature Description
Actually, the
crud-service
deletes and creates indexes at runtime on the configured database.By default, if not specified on the MONGODB connection string, all operations are done on the primary replica set.
When the primary set is required to use a high amount of memory/cpu, a crud-service that starts up and connects to it may increase the operation load on the primary replica set and slow down the whole infrastructure.
Desired solution
At runtime is possible to switch the type of replica set the MongoDB client is used with the method
setReadPreference('<replica set type>')
from theMongoDbClient
.So I expect that the
crud-service
can switch the creation/deletion of indexes on the secondary replica set and after the creation/deletion of indexes is completed can return to the main one to perform the operation submitted by the users.The text was updated successfully, but these errors were encountered: