logs archiveBotHelp.net / Freenode / #mopidy / 2015 / August / 4 / 1
txomon|fon
aggghhhhh ****ing **** python3 mem profilers...
there are no actual profilers
dz0ny
jodal: any comments on this one https://github.com/mopidy/mopidy-youtube/pull/31 ?
txomon|fon: add celery to the mix :>
btw google has process snapshot tool in their repos
txomon|fon
dz0ny, not using it, using spark for the moment
dz0ny
never worked with spark, but I bet it performs better than celery :)
txomon|fon
dz0ny, I was doing all with kombu by hand, with the idea of having everything manually wired, then thought about celery, and then in the Ep I was showed hadoop and how spark was overcoming hadoop
dz0ny
someone should write pykka powered worker/job thingy :)
txomon|fon
dz0ny, but I understand celery apps to be run in a cluster, using 1 core each
no multi thread, no multi nothing
dz0ny
basicly they try to emulate actor/reactor pattern but because canvas is rly messy most times you end up with memory leaks
txomon|fon
seriously they have memory leaks?
dz0ny
and there is no priority per job, nor multiple queues for worker
yep
and it's hard to debug
txomon|fon
well, I used kombu and let the worker decide which job it was taking
dz0ny
in celery you have one master (thread) that can start multiple workers (threads) but each master can only process one queue at once
this boils down to one type of job
and you schedule 2k jobs then later decide we ned other type job pronto, it will wait until all those 2k jobs are done
unless you have another queue just for low,high,medium priority jobs :)
txomon|fon
xDDD that are tags for
dz0ny
I've heard rq deals with this better
jodal
dz0ny: no, I don't have any pykka solution to that up my sleeve :-)
adamcik
was this an other background extension work use case?
jodal
guess so
adamcik
was wondering about this a while ago, how to provide a nicer way of doing this in mopidy and/or pykka
dz0ny
adamcik: yt part?
yep
adamcik
that is some way of scheduling a background task or tasks to run
dz0ny
it would be nice if track_url could be just promise
or entire track object
I haven't tested this, just occurred to me :)
perplexa
hi
i'm trying to set up an nginx as reverse proxy for my mopidy. it seems to work as that i can go to the musicbox web frontend, but it then fails to connect to mopidy. anybody got some experience with this?
adamcik
the web client might have a hardcoded ws:// connection string with the port number in it
perplexa
it might have that
but, shouldn't it work anyway?
or doesn't nginx redirect the websockets?
adamcik
if the webclient tries to connect to somehost:6680 and that isn't reachable it won't
other possibility is that you are missing the right magic nginx flags to keep the ws connection stable
perplexa
both urls should be reachable
adamcik
s/flags/config/
perplexa
mmh
adamcik
but in that case you should be able to connect, just get disconnect to often
perplexa
i'm keeping it on the same url, all i'm doing is getting rid of the port
and the client is still reachable on its actual port
adamcik
I think that should work. but I would check with the browser developer tools under the network tab
should make it obvious what is going on
kingosticks
There's also an example at https://github.com/jcass77/Pi-MusicBox/blob/nginx/filechanges/etc/nginx/sites-available/default
which worked last time I tried it with the jessie version of nginix
nginx*
perplexa
i'll try that, thanks
ok interesting
it stops working as soon as i change the default port to which is being redirected to something other than 6680
i set the 'internal' mopidy http port to 6680 and it is working now. maybe the port is hard coded in musicbox
kingosticks
are you talking about musicbox-webclient
it very much depends what version you are running. the unreleased develop branch has some fixes for this
perplexa
yea, sorry for being ambiguous
i just upgraded to 2.00 via pip
hadn't touched my music pi in ages :)
kingosticks
i dont think there is a release with those fixes
perplexa
well the workaround of going back to the default port is okay for me
kingosticks
super
perplexa
thanks for your help guys
adamcik
kingosticks: I think the new mopidy-files + automounting of usb in pimusicbox could be a killer combo btw
kingosticks
woo some progress with that m-s2 seg fault thing
it's just so easy to play with no pyspotify i cant help it, even when just trying to create a bug report
its awesome
jodal
:-D
back from vacation?
I haven't looked anything at the two m-s2 segfaults, even though I've seen at least one of them myself
kingosticks
got a short trip thursday-sat but yeh
so much to catch up on!
jodal
today I've played a bit with building custom debian images
kingosticks
do you know anything about packaging c source?
i have been trying to find out if you are supposed to include those autotools generated files, information seems to be conflicting
jodal
I made the autoconf setup for libmockspotify once
kingosticks
oo
jodal
but don't think I've packaged anything lib* other than libspotify, which is all "take these files and put them in place"
kingosticks
i was having a nightmare. upstream doesnt check in those files (seems sensible) but then that git-buildpackage was complaining that the tar it generated suddenly included these extra files
maybe ill just check them all in and be done with it
i just wanted to have a deb for shairport-sync so i could cross that off my list
jodal
I guess they shouldn't be there before you run git-buildpackage, then some part of the packaging should recreate them, and debclean should kill them off
at least, if that's the case, then git-buildpackage wouldn't have anything to complain about
mikebrady is the living fork of shairport-sync?
kingosticks
something is creating them, i was assuming it was autoreconf
yes
what is debclean?
jodal
https://github.com/mopidy/libmockspotify/blob/debian/debian/rules#L7
autoreconf seems like the right track to follow
as you can see, this is 2.5y ago
kingosticks
but it did work
i presume
i wonder where i am going wrong.
jodal
is there anything halflegal about shairport-sync, or should it be a candidate for debian proper?
kingosticks
i think its in arch
jodal
libshairport2 is already in debian
adamcik
jodal: I've been looking at various sources on how to do robust in the field "embedded" upgrades, which kinda fits in with debian images
kingosticks
Wahh
« prev 1 2 3 next »