PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Monday the 21st of December, 2015

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[04:00:05] <macwinne_> Hi, I have a simple regex search for any email matching a domain in my mongo query.. I wanted to see what the best way to do a query for emails that DO NOT end in the domain name..
[04:00:24] <macwinne_> any suggestions on this? seems like negative searches aren't really performant
[04:00:48] <macwinne_> or maybe searching for all emails that does end with @<filterered_domain>
[09:59:11] <flok420> for a query where I do a '$lt' on a field, will it help if I put an index on that field? because I *think* that indexes are only for == and not for > and <, right?
[10:50:16] <Kosch> hey guys. I see in the log the message "The server certificate does not match the host name" (mongodb 3.0.8). I have set "allowInvalidHostnames: true". My question is: Is this just a warning message, or is this an error? http://nopaste.linux-dev.org/?899573
[10:54:07] <nerder> hello guys
[10:54:27] <nerder> how can i store result documents into an array? and how can i print it out?
[10:56:14] <nerder> this is my simple script, but actually it doesn't work fine
[10:58:47] <nerder> ok, it work in this way : https://gist.github.com/nerder/a17a80f044dbce85b689
[11:04:56] <nerder> second question is, i can use the result array as a collection? i mean i can do myResultArray.findOne({query});
[11:40:17] <sppadic> hi there - quick query regarding high globallocktime in dbserverstats as opposed to the total time
[11:40:25] <sppadic> this is in mongo 2.6 running on centos 6.4
[11:41:06] <sppadic> there was a spike in locks for about 10mts earlier - the current mongostats as well as globalLOck output in db.serverStatus shows that there are no queued writes or reads
[11:42:13] <sppadic> wondering if the only way to reset that locktime is to restart the replica node?
[11:58:51] <steerio> hi, is there an opposite to rs.initiate() ?
[11:59:11] <steerio> i am trying to set up a cluster, i used rs.initiate() with no arguments on both sides, now it complains that both members have ID=0
[11:59:30] <steerio> i mean rs.add() simply doesn't work because of that
[11:59:49] <steerio> so i guess i need to reconfigure one of the sides such that the id is not 0
[12:00:16] <steerio> but i cannot remove the sole member using rs.reconfig()
[12:00:27] <steerio> can i add the other member using that, instead of rs.add()?
[12:01:46] <steerio> ...but then i have to do that on the other side too, argh
[12:02:17] <steerio> goodness, why does this have to be so painful
[12:02:57] <nerder> hello guys
[12:03:03] <nerder> how can i do a query like this? https://gist.github.com/nerder/a54e2a33343052b5a76a
[12:03:51] <nerder> i want to push some string into an array, but that actually is contained into an another array with key/value object
[12:07:16] <steerio> our config version of 2 is no larger...
[12:07:17] <steerio> omg
[12:07:36] <steerio> WHAT THE
[12:07:39] <steerio> how is this supposed to work?
[12:12:10] <steerio> Unexpected field configVersion in ReplSetHeartbeatArgs
[12:12:16] <steerio> okay, I think I give up
[12:22:53] <cheeser> to undo that, stop one server, delete the data dir. (provided you have no data in it to keep)
[14:27:21] <livcd> i am getting nc: connect to localhost port 27017 (tcp) failed: Connection refused
[14:35:03] <cheeser> mongod isn't running
[15:14:25] <nerder> anybody can help me with this query: https://gist.github.com/nerder/a54e2a33343052b5a76a
[15:17:17] <cheeser> what's wrong with it?
[15:19:12] <nerder> cheeser: i updated the gist with a comment on it
[15:20:04] <nerder> what i'm try to accomplish, it to check for sizes.type and push into the related array sizes.values
[15:23:40] <nerder> i have to push int sizes.value, but the right value into the right type. I don't know if i explained it good
[15:32:12] <cheeser> you have to do what now?
[15:52:16] <Kosch> Hi! Replication question (3.0.8): I have a primary. I have a secondary with priority 0. When I shut down the secondary, shortly after the primary steps down to become secondary "Stepping down from primary in response to heartbeat". How can I avoid this step down when secondary is not available?
[16:01:50] <Kosch> Is the only chance to avoid the step down to add an arbiter?
[16:10:00] <cheeser> sounds like you have a different problem if your primary randomly decides to step down.
[16:10:12] <cheeser> is it because it's not seeing the secondary quickly enough?
[16:10:35] <cheeser> in that case, an arbiter on the same machine/network would "fix" that but your replication is still broken.
[16:12:34] <Kosch> cheeser: yes, its kind of remote backup of the data. And the remote connection is not the best one. I just want to avoid that the primary steps down :) Maybe I should set hidden:true and votes:0 for the secondary.
[16:14:36] <cheeser> or find a better backup solution :)
[16:14:38] <Sadik> hi
[16:15:34] <livcd> cheeser: i have deleted /data/db and restarted thx
[16:15:46] <Sadik> I need help on an error
[16:18:42] <livcd> is there a minimal client for osx ? i just need a client to connect to a remote db
[16:19:04] <Kosch> cheeser: ATM its the best solution for cold standby. mongodump is not a option, mirror of the volumens too. Somtheing like incremental backups only exists using the oplogs... which seems to be a bit tricky to me. So using replica set seems the only option I can see.
[16:21:24] <cheeser> https://www.mongodb.com/cloud
[16:21:34] <cheeser> PIT backups available
[16:27:12] <Sadik> error : "cannot use the part to traverse the element"
[16:46:25] <nerder> hey cheeser sorry, connection is very bad today
[16:46:54] <nerder> anyway i found out a way, but i need just a last help
[16:47:38] <nerder> { $push: { "sizes."+i+".values": { key: i, value : myArray[i]}
[16:47:52] <nerder> how can i do something like that? i've got Error: Line 15: Unexpected token +
[16:48:06] <nerder> (i'm into a for lopp
[16:48:11] <nerder> *loop)
[16:49:14] <nerder> it work just fine if i manually do: { $push: { "sizes.0.values": { key: i, value : myArray[i]}
[16:51:08] <cheeser> oh, i'm not sure about that one...
[16:51:33] <livcd> what about the client guys ? :3
[16:51:56] <cheeser> 'mongo' is about as minimal as it gets
[16:52:45] <Kosch> cheeser: cloud is not an option :)
[16:53:22] <nerder> cheeser: what do you mean?
[16:54:43] <cheeser> Kosch: you can run it on site.
[16:54:50] <cheeser> ops manager vs cloud manager
[16:54:59] <cheeser> nerder: mean about what?
[16:55:26] <nerder> cheeser: "'mongo' is about as minimal as it gets"
[16:55:32] <nerder> you was talking with me?
[16:56:03] <nerder> or is just a misunderstand?
[16:56:18] <cheeser> i was responding to livcd
[16:56:34] <nerder> cheeser: sorry, i didn't get it
[20:03:16] <ararog> anyone here is using mongoid?
[20:09:51] <SirRafiki> hi guys, any of you ever used mongodb + django?
[22:07:15] <Zelest> Derick, around?