[00:22:27] <unholycrab> whats the least destructive way to change the hostnames in a replica set config?
[00:22:34] <unholycrab> rs.reconfig will cause an election
[00:22:50] <unholycrab> the members will be the same, but i want to change the hostnames that refer to them
[00:26:10] <Boomtime> the replica-set configuration determines how the members communicate - if you change those names then you change the way they communicate
[00:26:29] <unholycrab> okay. i want to swap out ther hostnames with the ip addresses of the instances
[00:28:52] <joannac> that's a step backwards in my opinion
[00:29:25] <joannac> but you're not going to get around a reconfig and a stepdown
[00:32:36] <unholycrab> AWS intenral hostnames are no more intersting than ip addresses
[00:32:42] <unholycrab> and they are having DNS problems right now
[00:36:20] <unholycrab> the internal hostname is tied to the intenral ip address, and we don't have our own DNS layer
[00:38:13] <skot> There are two hostnames for aws hosts and one is tied to the dhcp address, so don't use that one.
[00:57:00] <unholycrab> skot: you are referring to the extenal vs internal hostnames
[00:57:07] <unholycrab> which are tied to the external/internal ip addresses
[04:14:53] <nobody2> hello i have a question about installing mongodb on centos. im a total noob. but i have followed instructions on official web-site. they didnt help me. so here i am. can anybody help me?
[04:16:04] <Boomtime> what did you have trouble with when following the instructions?
[04:16:30] <Boomtime> also, please confirm you mean these instructions: http://docs.mongodb.org/manual/tutorial/install-mongodb-on-red-hat-centos-or-fedora-linux/
[04:16:32] <nobody2> mongod doesnt works - doesnt exists
[04:17:08] <nobody2> yes i confirm that i have tried that about dozen times
[04:18:21] <Boomtime> you used yum to do the install?
[04:48:10] <joannac> okay, follow the 32-bit steps then
[04:48:31] <joannac> and you're not going to get very far with a 32-bit system, but if you're only testing then i guess it's fine
[04:52:27] <nobody2> joannac Boomtime im just trying to test it on this server - not a big project though. Here is my steps. I couldnt get to run part so it is short. https://titanpad.com/UmcxpshHEO
[04:53:17] <nobody2> also it is a VPS - so you should expect so much from it, aside for a testing purposes
[06:14:33] <jekle> but I will keep that in mind. because I will build more critical apps with mongodb. I love it.
[06:41:16] <hydrajump> hi I need some advice. I'm taking over a mongodb install which is a 3 node replica set version 2.4.4
[06:42:13] <hydrajump> the devs don't want to update yet to 2.6.4 but they want me to move the current database to new ec2 instances which are dedicated.
[06:43:30] <hydrajump> I'm thinking about creating 3 new ec2 instances, installing 2.4.4 on each one and adding them to the currennt replica set. Once the new ones have the data replicated I will terminate the 3 old ones. Any gotchas I should be aware of?
[06:44:00] <hydrajump> Do the 3 news instances need to be setuo exactly like the old ones other than same mongodb version?
[06:45:07] <Boomtime> you should use the latest 2.4.x, which is 2.4.11, this is compatible with your version, requires no upgrade procedure but has a tonne of bugfixes
[06:47:07] <hydrajump> Boomtime: hi really devs are very concerned about things breaking with current version of mongoose etc. So nothing between 2.4.4 and 2.4.11 that devs would need to address?
[06:49:42] <joannac> put it this way, there are definitely replica set issues present in 2.4.4, that are fixed in 2.4.11
[06:51:10] <hydrajump> joannac: ok i want to move to 2.6.4 but as devs are concerned about code changes they need to make I've said I'll stick with 2.4 for now. I wasn't aware that 2.4.11 would not require code changes,
[06:54:17] <hydrajump> joannac: is my proposed method of moving the db to the 3 new mongodb instances correct?
[07:30:02] <kakashi_> Hi, I have a question about mongos.
[07:30:46] <kakashi_> our mongos will be deleted by OOM-killer regularly, how can I solve this problem
[08:44:08] <richthegeek> you can select using $size
[08:44:18] <richthegeek> but you can't sort using $size, unless you go back to the aggregation framework
[08:44:33] <richthegeek> so it really depends on how you want to define "high"
[08:45:54] <richthegeek> I expect you'll need to use aggregation in combination with $unwind, $project->{$cond, $sum}, $match, $sort
[08:46:40] <richthegeek> the "easiest" way to do this is to denormalize the value of votes cast to a sortable/selectable value onto the root document
[08:46:50] <richthegeek> ie, do that when votes are cast, rather than selecting later
[08:48:25] <sabri_> I would count "high" votes, "medium" votes and "low" votes for each message and then I would select only messages that have received a number of "high" votes greater than "medium" votes and "low" votes
[09:05:15] <richthegeek> sabri_: something like this shhhoooould work http://pastie.org/private/icyuznmwktirxqzsnitxtw
[09:06:23] <richthegeek> although it will fail when the number of high/medium votes are equal on an object, so switch some of them to $gte depending on what weighting you'd prefer
[09:10:35] <tjap> I have an issue with a failed migration of chunks between shards
[09:10:46] <sabri_> richthegeek_: thank you very much!! Only a question: How I can write the query?
[09:10:51] <tjap> anyone willing to point me in the right direction?
[09:41:39] <richthegeek> whilst that's definitely something that works, it'll be pretty slow on larger datasets so don't do it live if you expect it to be done more than once a second or something
[09:42:07] <richthegeek> better to project those fields on-insert or use a cronjob to $out that pipeline into somewhere on a regular basis
[09:44:15] <Lope> I'm having an issue updating multiple documents in the console. When I run this db.replaceTeam.update({s:'a'},{$set:{c:0}},{$multi:true}); it says: WriteResult({ "nMatched" : 1, "nUpserted" : 0, "nModified" : 0 })
[09:44:41] <Lope> but db.replaceTeam.find({s:'a'}).count(); is 67
[11:07:55] <Sjimi> Is there a possibility to check if an array contains one or more from an array? ($all is used to check if all the elements are in the array, I need the opposite)
[16:51:15] <krion> i read a bit more on "primary" "secondary" too, because i've to do it on both shard/replicaset
[16:53:18] <kali> just do it one at a time and make sure you have fully recovered before moving on the the next replica. do the secondaries first, then step down the remaining primary, stop it, rm, start
[16:54:01] <kali> you can do both shards in parallel, just be carfull not to break two nodes from the same RS at the same time
[17:02:59] <kali> krion: it's more frightening than dangerous. just be careful. you'll find out mongodb is much more admin friendly than most relational dbs
[17:32:21] <znn> i have a json file, and i want to store it in mongodb
[17:32:35] <znn> are there instructions somewhere for teaching me how to do this with pymongo?
[17:33:39] <znn> mongoimport may be what i'm looking for though
[20:41:33] <deanclkclk> what could be causing this issue?tail -f ~/workspace/mongo/mongoArb.log ************* Thu Oct 2 09:02:41.058 [initandlisten] exception in initAndListen: 12596 old lock file, terminating Thu Oct 2 09:02:41.058 dbexit: Thu Oct 2 09:02:41.058 [initandlisten] shutdown: going to close listening sockets... Thu Oct 2 09:02:41.058 [initandlisten] shutdown: going to flush diaglog... Thu Oct 2 09:02:41.058 [initandlisten] shutdown: going to close sockets..