The web in a box - a next generation web framework for the Perl programming language

IRC log for #mojo, 2016-01-04

| Channels | #mojo index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:33 damaya joined #mojo
00:35 bpmedley https://github.com/brianmed/notify <-- Some thoughts on WebSocket multiplexing
00:36 bpmedley https://github.com/brianmed/notify/blob/master/templates/index/slash.html.ep#L19-L77 <-- Example of an end-user api
00:36 bpmedley http://bmedley.org:9999  <-- Example usage
00:37 bpmedley Fairly rough around the edges, a bit naive, and some naming doesn't work well..
01:09 damaya joined #mojo
01:42 asarch joined #mojo
01:43 lynnet joined #mojo
01:50 damaya joined #mojo
01:59 kaare joined #mojo
03:07 noganex_ joined #mojo
06:49 cpan_mojo Statocles-0.064 by PREACTION https://metacpan.org/release/PREACTION/Statocles-0.064
07:10 mtj joined #mojo
07:28 Vandal joined #mojo
07:29 trone joined #mojo
07:41 dod joined #mojo
07:46 dod joined #mojo
07:51 cpan_mojo Task-BeLike-MPERRY-0.01 by MPERRY https://metacpan.org/release/MPERRY/Task-BeLike-MPERRY-0.01
08:07 damaya joined #mojo
08:10 eseyman joined #mojo
08:17 Lee joined #mojo
08:35 AndrewIsh joined #mojo
08:39 AndrewIsh joined #mojo
08:47 odc joined #mojo
09:00 sugar joined #mojo
09:00 sugar joined #mojo
09:24 ashimema joined #mojo
09:37 osfabibisi joined #mojo
09:55 tyldis joined #mojo
09:56 osfabibisi joined #mojo
10:04 CandyAngel Mwahahaha.. I have made a plugin :D
10:05 bpmedley CandyAngel++
10:05 bpmedley What does the plugin do?
10:06 CandyAngel Puts Mojolicious::Command::* under a 'mojo' command
10:06 bpmedley Interesting
10:07 CandyAngel So I don't have to worry about command name collisions, but still have access to anything Mojo provides :)
10:16 CandyAngel bpmedley: It looks like this: http://codepad.org/xZk7VY3H
10:17 CandyAngel So it's probably a little weird :P
10:17 McA joined #mojo
10:19 bpmedley Nah.. looks cool.  So, the default commands will be something like "mojo daemon" rather than "daemon"?
10:20 CandyAngel Yeah
10:21 berov joined #mojo
10:21 dvinciguerra joined #mojo
10:23 CandyAngel I should probably make it so it takes a list of namespaces to set, so you can just do plugin 'MojoSubcommand' => ['Local::Command'];
10:23 CandyAngel Rather than pushing them on after
10:23 damaya joined #mojo
10:32 jontaylor joined #mojo
10:38 dvinciguerra joined #mojo
10:55 kes joined #mojo
11:00 melo joined #mojo
11:12 damaya joined #mojo
11:45 dvinciguerra joined #mojo
12:06 MartinR joined #mojo
12:12 neilhwatson joined #mojo
12:29 kaare joined #mojo
12:33 taichi joined #mojo
12:48 kivilahtio joined #mojo
13:02 berov left #mojo
13:04 berov joined #mojo
13:06 sue joined #mojo
13:24 damaya joined #mojo
13:24 dod joined #mojo
13:34 dod joined #mojo
13:39 damaya joined #mojo
14:16 sh4 joined #mojo
14:17 jb360 joined #mojo
14:19 dvinciguerra joined #mojo
14:20 zivester joined #mojo
14:25 bwf joined #mojo
14:39 ribasushi joined #mojo
14:58 marty joined #mojo
14:59 jberger CandyAngel: does it remove Mojolicious::Command from the app's original set of namespaces?
14:59 jberger oh, line 10
14:59 jberger it'd be better if it filtered it out and then add it the new namespace
14:59 jberger so that the plugin is load order independent
15:00 jberger just my $0.02
15:06 CandyAngel jberger: Yeah, that's a good idea
15:07 CandyAngel Thankies
15:11 voldemortensen joined #mojo
15:12 voldemortensen1 joined #mojo
15:28 orev joined #mojo
15:51 damaya joined #mojo
16:06 damaya joined #mojo
16:13 damaya joined #mojo
16:27 bwf joined #mojo
16:40 asarch joined #mojo
16:43 hahainternet joined #mojo
16:43 zivester joined #mojo
17:02 lluad joined #mojo
17:03 sh4|2 joined #mojo
17:04 ZoffixW joined #mojo
17:04 ZoffixW If I have a memory leak in my app, hot-restarting it with hypnotoad every hour would not help it, would it?
17:05 pink_mist well, you'd be starting afresh every hour, but fixing it is the real solution
17:05 Grinnz_ hypnotoad already restarts the workers after a certain number of requests to avoid that
17:05 Grinnz_ you could lower that limit
17:05 ZoffixW hm
17:06 ZoffixW Well, the server died and I've no idea why. Was wondering if there were perhaps a leak in my app, but it's hot-restarted every hour, so if that starts afresh, then it's something else that killed the server
17:08 Grinnz_ yeah the hot-restart will kill off the workers if they don't stop in a certain amount of time (under a minute)
17:12 batman ZoffixW: if's weird that hypnotoad dies. the "manager" process should /not/ exit
17:12 batman s/dies/stops/
17:12 ZoffixW batman, sorry, but "server" I meant the Debian Server my app runs on.
17:12 batman i mean... the children might exit, but the manager should survive no-matter-what. (at least that's what i thought)
17:12 batman oh.
17:13 batman sounds serious... do you see any *weird* requests in your access log?
17:14 batman maybe someone is uploading a billion files to your host :/
17:14 batman s/billion/a lot/
17:16 batman (probably not a good theory)
17:16 ZoffixW checking
17:18 ZoffixW No, nothing unusual. I see Google Mobile robot scraping a URL ~ 2 minutes before the death.
17:18 ZoffixW Google killed the server! :D
17:18 batman hehe
17:20 jberger that happens
17:20 cpan_mojo Minion-Notifier-0.04 by JBERGER https://metacpan.org/release/JBERGER/Minion-Notifier-0.04
17:20 jberger death by google bot
17:23 batman ZoffixW: which os are you running on?
17:24 ZoffixW batman, Debian GNU/Linux 8.2 (jessie) 3.16.7-ckt20-1+deb8u1 (2015-12-14) x86_64 GNU/Linux
17:25 batman ok... (found another module) https://metacpan.org/pod/Memory::Usage <-- maybe you can use that to dump information to a log file?
17:25 batman like Mojo::IOLoop->recurring(30 => sub { app->log->info("mem=", join ', ', @{$mu->state} });
17:26 ZoffixW Well, I can see it growing in htop when I ran 'ab' against it.
17:27 ZoffixW Grew by like 10KB after 1000000 requests
17:27 ZoffixW gonna try hot-restarting it now
17:27 batman oh. what about using ulimit? and then install a signal handler to kill the process at a given level?
17:28 ZoffixW Well, at this point I'm unsure whether it was because of RAM or anything about what happened and this server has a wholebuncha more memory intensive apps running in crons.
17:28 ZoffixW I'm just trying to ensure it's not *my* work that killed it :P
17:28 batman :)
17:29 ZoffixW k, restarting the app removed any possible leakage it had. So yeah, it's not my app, as it's restarted with cron about every hour :P
17:29 ZoffixW Oh well. Maybe something else
17:29 ZoffixW Thanks for the help
17:50 punter joined #mojo
18:30 kes joined #mojo
18:34 disputin joined #mojo
18:38 dod joined #mojo
18:41 disputin joined #mojo
18:50 PryMar56 joined #mojo
18:55 disputin joined #mojo
19:26 disputin joined #mojo
19:48 Martin90 joined #mojo
20:29 MartinR90 joined #mojo
20:34 Kogurr joined #mojo
22:20 jberger sri: https://twitter.com/darkixion/status/684127020197003264
22:20 jberger not sure who that is, but it got retweeted into my timeline
22:23 disputin joined #mojo
22:36 sugar joined #mojo
22:39 MartinR90 I have 9.5 beta installed for a while and it works ok
22:42 cfedde_ this is turning into an occupation.
22:43 sue joined #mojo
22:49 MartinR90 cfedde, what do you mean ?
22:56 damaya joined #mojo
23:08 cfedde MartinR90: it was a ww post but I was too embarassed to admit it.
23:26 sugar joined #mojo
23:31 CandyAngel That moment when you look at a script you previously wrote and have no idea why its coded the way it is..
23:31 CandyAngel This one.. doesn't really do the only thing it would be intended for :|

| Channels | #mojo index | Today | | Search | Google Search | Plain-Text | summary