#amara

/

      • honza
        sjl: crap, sorry
      • sjl: i'll jump on it when i get off this call
      • sjl
        I think after the DMR we should look into improving performance a bit at some point, because these video pages are excruciatingly slow when you're trying to test crap
      • honza
        resetting these branches is a pita
      • ehazlett
        honza: you mean switching between?
      • honza
        ehazlett: yeah, vereset essentially :)
      • ehazlett: can't wait for this stuff to get merged
      • ehazlett
        honza: yeah that's what i do: git checkout <branch> ; vereset ; dbreset
      • honza: no kidding :)
      • honza
        ehazlett: the command itself is great but man it takes forever
      • fernandotakai
        ehazlett: honza i totally have two vms. because i just can't deal with two branches
      • ehazlett
        honza: we have too many packages ;)
      • fernandotakai: honza yeah
      • honza
        ehazlett: you could probably do some symlink magic to keep both and just switch but who wants to mess with that
      • ehazlett
        fernandotakai: honza it does take forever to build our ve
      • honza: yeah
      • honza
        ehazlett: friggin pip
      • :)
      • ehazlett
        all: have any idea why we're getting a shitload of messages on a celery vhost (rabbitmq)? http://d.pr/i/Scei
      • all: has any one did anything with celery recently?
      • arthurdebert
        ehazlett can be my import script
      • ehazlett
        arthurdebert: ah ok
      • arthurdebert: what are you using for the vhost?
      • arthurdebert
        ehazlett where can I see the stats for the rabbit queue?
      • ehazlett production>rabbitmq>>overview>>queus_total__messages_ready reads weridly for us
      • ehazlett
        arthurdebert: sudo rabbitmqctl list_queues
      • arthurdebert
        ehazlett I mean historical data, I want to see when it grew
      • ehazlett
        arthurdebert: hmm those are odd
      • arthurdebert
      • ehazlett
        arthurdebert: yeah -- i need to check those stats ; they look odd -- may be a whisper storage mis-config
      • arthurdebert
        ehazlett ah
      • ehazlett
        arthurdebert: i got the first alert about 45 min ago
      • arthurdebert
        ehazlett hm, I wonder if I should stop the import or if we can increase the # of celery workers?
      • ehazlett
        arthurdebert: looks like the unisubs queuea are fine
      • arthurdebert: well that's the issue
      • arthurdebert: it's putting the messages on the wrong queue
      • arthurdebert: so there are no workers consuming
      • arthurdebert
        ehazlett which queues are not fine?
      • ehazlett what?
      • ehazlett it's running with --settings=unisubs_settings...
      • ehazlett
        arthurdebert: there are 70000+ messages on the "celery" queue on the "/" vhost -- it needs to be on the "unisubs" vhost
      • arthurdebert: what directory?
      • arthurdebert
        ehazlett arthur@data-00-production:/opt/apps/production/unisubs$ python unisubs-integration/ted/tedximporter.py --datapath=/home/arthur/postprocessed_sans_dupes.csv --settings=unisubs_settings --import >> /home/arthur/tedx-import.log
      • ehazlett
        arthurdebert: can you stop it? i want to see if the messages stop
      • arthurdebert
        ehazlett hm, I can but I'll probably loose some time as it restarts and goes through the list again… if you fell it's important, I'll do it
      • ehazlett
        arthurdebert: well right now those jobs are just sitting
      • arthurdebert
        ehazlett hm, ok, let me stop it
      • ehazlett stopped
      • fernandotakai
        all: leaving for the weekend, see you on monday!
      • arthurdebert
        fernandotakai later
      • sjl
        arthurdebert: later
      • ehazlett
        arthurdebert: yeah they stopped
      • arthurdebert
        ehazlett ok, and how would that be causing us to use the wrong queue? I can't fanthom it
      • ehazlett
        arthurdebert: i'm still digging -- have no idea
      • arthurdebert
        ehazlett k
      • cz
        arthurdebert: ping
      • arthurdebert
        cz looking
      • ehazlett
        arthurdebert: echo "from django.conf import settings ; getattr(settings, 'BROKER_VHOST')" |/opt/ve/production/unisubs/bin/python manage.py shell --settings=unisubs_settings
      • arthurdebert: >>> 'unisubs'
      • arthurdebert
        ehazlett how is that possible? I didn't change anything on that env
      • ehazlett
        arthurdebert: i have no idea
      • arthurdebert: digging
      • arthurdebert: here's a hunch
      • arthurdebert: did you run this on staging?
      • arthurdebert
        ehazlett nope
      • ehazlett
        arthurdebert: ok -- here's my current wild guess ;)
      • arthurdebert: actually nevermind -- i forgot you were running with --settings=unisubs_settings
      • sjl
        all: brb 15m
      • ehazlett
      • arthurdebert
        ehazlett that's normal
      • ehazlett
        arthurdebert: well it's overriding the django settings module, right?
      • arthurdebert: which would reset all values to defaults
      • arthurdebert
        ehazlett but wouldn't that screw up the other settings, such as the DB connection?
      • ehazlett
        arthurdebert: yeah i would think
      • arthurdebert
        ehazlett we're picking up the right settings, or else nothing would work (mainly the db connection)
      • ehazlett
        arthurdebert: that's true
      • arthurdebert: so something is overriding the BROKER_VHOST
      • maggie_s joined the channel
      • arthurdebert: ok so i temporarily edited the script to output BROKER_VHOST and it's right
      • arthurdebert
        ehazlett ah
      • ehazlett are you running it?
      • ehazlett
        arthurdebert: no i just made it output BROKER_VHOST and exit
      • arthurdebert: and it was right
      • arthurdebert
        ehazlett k
      • ehazlett must be something else
      • honza
        sjl: pushed
      • arthurdebert
        ehazlett but the messages stopped, right?
      • ehazlett
        arthurdebert: yep
      • arthurdebert: http://d.pr/i/qVLF
      • arthurdebert: it's been there
      • arthurdebert: shit i have no idea
      • arthurdebert: try running it again -- i'm going to watch the queue
      • arthurdebert
        ehazlett will do
      • ehazlett
        arthurdebert: yep climbing again
      • arthurdebert
        ehazlett but it's barely run anything
      • ehazlett like it processes about 1 video per second
      • ehazlett
        arthurdebert: did you stop it?
      • arthurdebert: http://d.pr/i/85x9
      • arthurdebert
        ehazlett nope, it's running
      • ehazlett
        arthurdebert: yep celery is climbing
      • arthurdebert
        ehazlett here's my dilemma a) I'm really going to need to leave on the next 30 minutes b) I can't seem anything wrong with the video's I'm pulling
      • ehazlett
        arthurdebert: stop it -- can you add it to print the output of settings.BROKER_VHOST right before it processes the video?
      • arthurdebert: i only checked before it called process_all
      • arthurdebert: and i'm not familiar with it enough to start hacking ;)
      • arthurdebert
        ehazlett will do
      • ehazlett
        arthurdebert: what is it putting on the queue?
      • sjl
        honza: thanks
      • ehazlett
        arthurdebert: this is one of the decoded jobs, this look right? https://gist.github.com/a5bf2047f73e833a14f3
      • nicksergeant
        all: back, finally
      • arthurdebert
        ehazlett I think this is related to stuff that fernandotakai and honza are working on
      • ehazlett
        arthurdebert: ugh
      • arthurdebert: i wonder why it stops when you stop your importer
      • arthurdebert
        ehazlett is there a human readable way to get those parameters?
      • ehazlett
        arthurdebert: actually wait, i think what i did was just pull a random job
      • arthurdebert
        fernandotakai hey, sorry, if you're around, let me ask something
      • ehazlett
        arthurdebert: nope -- it's the jobs on the celery queue on /
      • arthurdebert
        fernandotakai is it possible that just by importing videos from yt and saving them locally I can be triggering the adding amara credits things?
      • ehazlett if that is being created by me, than we NEED to drop those
      • ehazlett
        arthurdebert: i can destroy the queue
      • arthurdebert
        ehazlett can we get a human readable output of that? I want to check the parameters
      • ehazlett
        arthurdebert: let me check
      • arthurdebert: trying
      • arthurdebert
        ehazlett I don't seem to miss those tasks in what I'm doing, but it makes me nervous to not know what's going on
      • ehazlett
        arthurdebert: exactly -- same here
      • arthurdebert
        ehazlett yeah, I can see why my script would run that, but I could totally drop them
      • ehazlett nor I understand why it run that on the other queue
      • ehazlett
        arthurdebert: i know -- very odd
      • arthurdebert: {'retries': 0, 'task': 'videos.tasks.add_amara_description_credit_to_youtube_video', 'eta': None, 'args': (u'aPThfwSc2tA1',), 'expires': None, 'callbacks': None, 'errbacks': None, 'kwargs': {}, 'id': '96f549bc-04bc-4f63-b77c-01ffdac4f97b', 'utc': True}
      • arthurdebert: had to perform some magic ;)
      • arthurdebert
        ehazlett tks, let me check
      • ehazlett ok, so, this is caused by my script, for sure
      • ehazlett I also know where it's calling but
      • ehazlett
        arthurdebert: k
      • arthurdebert
        ehazlett a) I can totally drop those b) I don't know why they're being queued on the wrong vhost
      • ehazlett I 'm thinking about letting this running
      • ehazlett
        arthurdebert: i know -- the only thing i can think of is either 1) somethings changing the vhost or 2) celery is being initialized with something like celery = Celery() which would use the default settings
      • arthurdebert
        ehazlett I'm positive this will have no ill effects on what I'm doing
      • ehazlett
        arthurdebert: ok -- it will just send alerts (no big deal)
      • arthurdebert: there are no workers pointing to that vhost
      • arthurdebert
        ehazlett ok, so I'll restart it and we can figure it out
      • ehazlett
        arthurdebert: ok
      • arthurdebert
        ehazlett it's still pretty weird
      • ehazlett
        arthurdebert: thx for checking
      • arthurdebert: 100% agree ;)
      • arthurdebert
        ehazlett tks for the heads up
      • ehazlett
        arthurdebert: yw
      • arthurdebert
        ehazlett I want to know what's going on, I just can't dive in right now
      • ehazlett
        arthurdebert: sure -- np
      • arthurdebert: i'll leave the messages there so we can check later (as long as they don't expire)
      • arthurdebert
        ehazlett tks, that's good thinking