[nodejs] Cluster question

2014-12-08 Thread Ω Alisson
I'm running a Node app that fetches Redis data into another database. It´s using the cluster module, everything works fine but I need to ensure that workers will finish properly their jobs(they use BRPOP then allocate into a object then insert in batches cleaning the objects), how do I do this? --

Re: [nodejs] node.js and io.js reconciliation

2014-12-08 Thread // ravi
On Dec 8, 2014, at 2:12 PM, Harald Hanche-Olsen wrote: > > And here is the original blog post that sparked the discussion. > > http://wesleyio.tumblr.com/post/104637877991/node-js-is-forked-not-f-ed > Where in we read: "Now, some people will scream about fragmentation”. People do not scream

Re: [nodejs] node.js and io.js reconciliation

2014-12-08 Thread Harald Hanche-Olsen
Here is the forking issue being discussed on Hacker News: https://news.ycombinator.com/item?id=8716966 And here is the original blog post that sparked the discussion. http://wesleyio.tumblr.com/post/104637877991/node-js-is-forked-not-f-ed I, for one, breathe a little easier now that these

Re: [nodejs] Re: Chef-like tool powered by node.js?

2014-12-08 Thread Simon L
So, here's my conclusion: I will present my findings to my boss, but my current recommendation is Salt. I'm really hoping I'm wrong on this and that a more robust node-based system management system will come out. Quick comparison, and correct me if I'm wrong. *Salt* - Best choice at this time,

[nodejs] Eskimo for Node.js devs

2014-12-08 Thread Sergey Pascan
For all web developers out there - a new boilerplate tool allowing to rapidly build Node.JS powered API’s, online stores, and many other apps (igloos) has been made available to the public - http://eskimo.io/. It’s open source! Here you’ll find more details, components, examples and the source

Re: [nodejs] Re: Chef-like tool powered by node.js?

2014-12-08 Thread // ravi
On Dec 8, 2014, at 11:03 AM, Simon L wrote: > > Hi Bruno and others- > > Any updates? I know this is an older post, but it's still very relevant. I'd > like your input. > > I am also looking into the different solutions to keep things as "node.js > friendly" as possible. > > From what I've s

[nodejs] Re: Chef-like tool powered by node.js?

2014-12-08 Thread Simon L
Hi Bruno and others- Any updates? I know this is an older post, but it's still very relevant. I'd like your input. I am also looking into the different solutions to keep things as "node.js friendly" as possible. >From what I've seen, most people are moving to salt: http://docs.saltstack.com/en

Re: [nodejs] os.cpus() and times

2014-12-08 Thread // ravi
> On Dec 8, 2014, at 12:43 AM, Christopher Rust wrote: > > I can't comment on how cpu idle time is calculated or if the cpus() array is > consistently ordered but I can point out that setTimeout is not expected to > be perfectly accurate. > > <…> > Still, 17 seconds seems like a lot. Are you

Re: [nodejs] os.cpus() and times

2014-12-08 Thread // ravi
On Dec 8, 2014, at 10:17 AM, // ravi wrote: > > Closer inspection reveals what might be the issue: if you take the idle time > reported to be not in ms, but 100*ms (where 100 = GNU/Linux clock ticks per > sec), then it starts to seem right. Throwing away the *100, the idle times > become: > >

Re: [nodejs] os.cpus() and times

2014-12-08 Thread // ravi
On Dec 7, 2014, at 11:37 PM, // ravi wrote: > > On Dec 7, 2014, at 11:06 PM, // ravi wrote: >> >> >> I am stumped by what must clearly be a misreading on my part. Node 0.10 docs >> say that each element of os.cpus() contains information about each CPU/core. >> This information includes "the

[nodejs] passport.js facebook user bio

2014-12-08 Thread Krzysztof Maruszczak
Hi, I'm trying to get facebook user bio, I have permission scope: passport.authenticate('facebook', { scope : ['email', 'user_about_me'] }) in my routes but profile._json.bio; returns undefined. How can I get this right? Thanks for help. -- Job board: http://jobs.nodejs.org/ New grou