-
Hi, Yes, it's possible to configure different data-sources using different repositories and then configure actual repositories (in this case
msgRepository
) to use mongodb implementation and point it to usemongo://…
data source.There is no "migration" path available so you would have to manually move the messages from one database engine to the other.
-
New comments from
Hi, regarding this issue is tigase compatible also with https://aws.amazon.com/documentdb/ instead of MongoDB? Do you have already tested it? Or I need to check if all the operations used by tigase are supported by DocumentDb ?
Hi, here are the supported commands by DocumentDb: https://docs.aws.amazon.com/documentdb/latest/developerguide/mongo-apis.html
with low priority could you check if tigase is using only commands supported also by DocumentDb ? Thanks
-
Hmm...
tigase-mongodb
implementation is public and available here: https://tigase.dev/tigase/_server/tigase-mongodb/~files or https://github.com/tigase/tigase-mongodb/I quickly checked the sources for the calls on
MongoCollection
and for example inMongoRepository.java
I see calls likeinsertOne
orupdateOne
which I don't see on DocumentDB list - I see plaininsert
orupdate
but and I'm not sure if that includesinsertOne
or not (they have explicitReplaceOne
). Though looking at mongodb api it listinsertOne()
andinsertMany()
thus I would imagine that both would be supported in the end.I quickly took a cursory look at the rest and I only found regular basic operations like insert/update/find.
-
In the last massive sending we haven't registered any problem also if there was some delay on AWS RDS for the massive insert/delete in the message archive table as ready seen in the other tickets. Also with 250 insert/delete per second tigase 8.1.2 was working correctly instead the 7.1.7 was not working correctly with this traffic, there was important delays up to 10 seconds, I guess that the problem was the wrong utilization of the database connection pool that was causing starvation for some connection. It seems that this problem has been fixed with the tigase 8.1.2 so I will not investigate further the migration to mondo/documentdb, you can close this ticket
Type |
Question
|
Assignee |
Isolating msg_history to mongoDB We are running our cluster on mysql, is it possible to "migrate" only the table msg_history from mysql to mongodb? Can we with config.tdsl change only the storage of offline messages from mysql to mongodb?
Details: