PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Thursday the 18th of July, 2019

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[11:20:47] <WebertRLZ> hey how do I change a replicaset secondary hostname?
[11:21:08] <WebertRLZ> Im changing domains and I want to change only secondary nodes. I will not touch the primary
[11:22:35] <WebertRLZ> is this enough? https://docs.mongodb.com/v2.4/tutorial/replace-replica-set-member/
[11:25:29] <brahmana> Hi... I have a Mongodb 3.4 node running as a standalone node. I want to convert it to a replicaset and then add another data node and one arbitrer
[11:25:57] <brahmana> Now can this second data node and the arbitrer be running a higher version of mongodb?
[11:26:02] <brahmana> 3.6 or 4.0 ?
[11:26:59] <brahmana> What is the general advice for having replicaset members running different version of Mongodb?
[11:27:42] <WebertRLZ> brahmana, as piece of advice I would not do it. Client applications probably will not be able to operate flawlessly on different versions
[11:27:46] <WebertRLZ> if that is possible at all
[11:28:14] <brahmana> ok.. even with 3.4 and 3.6 ?
[11:28:26] <brahmana> Have things changed so drastically between those versions?
[11:28:46] <WebertRLZ> no I think that is fine if you're still under 3. But look for changelogs between 3.4, 3.5 and 3.6 to see if there are any breaking changes
[11:29:11] <brahmana> ok
[11:29:24] <WebertRLZ> if it's only new features, bug fixes and small improvements, you must be good to go
[11:29:51] <brahmana> ok.. going through the changelog for 3.6
[15:25:21] <sleepingforest> any idea why i cant iterate over the result from an aggregation via 'for item in result:' ?
[16:09:57] <gufi> Hi, looking for some insight on why bulk inserts would be slow in some cases and others its fast. slow around 1-200 records a second and fast at 100000k plus. the only difference being the actual data that i'm saving
[16:10:52] <gufi> in neither case am i saving data thats considerably larger than the other... no indexes, creating a new collection and inserting to that.
[16:40:27] <DevilTiger> so is mongoDB just not possible on debian 10 at the moment?
[16:51:56] <edrocks> DevilTiger it should work. You can also use via docker
[16:52:52] <edrocks> guess it's no longer a debian package https://github.com/iiab/iiab/issues/1437#issuecomment-466663825
[16:53:02] <edrocks> install from source or use docker
[16:54:09] <DevilTiger> i have a database that i was not able to backup via the cli. is there anyway for me to restore it via just the files?
[16:58:31] <edrocks> do you know what version of mongo was running
[16:59:27] <edrocks> It should just work if you run that or a compatible version with the same data files on the same arch/os. I'd back it up first though
[16:59:37] <edrocks> DevilTiger ^
[17:00:05] <DevilTiger> whatever the latest was in debian 9 repos a month ago. i'm assuming 4.x
[17:00:34] <DevilTiger> i have a docker instance running and it has persisent storage but i've put my db files in there and no dice. i'm thinking its due to this applications docker-compose setup
[17:00:47] <edrocks> do you get any errors?
[17:00:59] <DevilTiger> nope, it just wipes the persistent storage and overrides it with its defaults.
[17:01:08] <DevilTiger> https://github.com/formio/formio/blob/master/docker-compose.yml
[17:01:33] <edrocks> well first off 4.1 is experimental. Use 4.0 or 4.2
[17:02:00] <edrocks> the odd minor version numbers are testing ones you shouldn't ever really use unless you are developing or testing specific things in mongodb
[17:02:42] <edrocks> you created a named volume iirc. You need to use `- /some/dir/on/host:/data/db`
[17:03:22] <edrocks> it is wiping it clean because it sees no files in the named volume so it creates a new db
[17:04:03] <DevilTiger> i'm putting the files in /var/lib/docker/volumes/formio_mdb-data/_data
[17:56:03] <DevilTiger> got it! phew, that was stressful
[17:56:36] <DevilTiger> ended up just restoring the db on my local machine so i could mongodump it the right way and import it via mongorestore in my docker container. all is right in the world....for now
[17:56:54] <DevilTiger> edrocks: ty for the assistance
[17:57:10] <edrocks> oh good!
[17:57:21] <edrocks> make sure you change that mongo version to 4.0.x 4.1 is experimental
[17:57:25] <DevilTiger> i did
[17:57:31] <edrocks> awesome
[17:57:41] <DevilTiger> curious if they plan on supporting debian 10 and are just making it stable or what
[17:58:02] <DevilTiger> i'm a docker noob so when stuff breaks its lots o googling
[22:13:58] <MicronXD> I'm trying to use an aggregation pipeline which groups items into arrays using `$group` and `$push`, but pushing "$" appears to be invalid
[22:14:01] <MicronXD> { $group : {
[22:14:01] <MicronXD> _id : "$class",
[22:14:01] <MicronXD> stack: {
[22:14:01] <MicronXD> $push: "$"
[22:14:01] <MicronXD> }
[22:14:02] <MicronXD> } }
[22:14:33] <MicronXD> I meant that to be on one line. My apologies
[22:14:34] <MicronXD> { $group : { _id : "$class", stack: { $push: "$" } } }