denise: Image: Me, facing away from camera, on top of the Castel Sant'Angelo in Rome (Default)
Denise ([staff profile] denise) wrote in [site community profile] dw_maintenance2011-12-21 05:39 pm

import queue delays

Thanks to a few people reporting problems with their import jobs stuck on the "verify" step for an extended period of time, we discovered a bottleneck in the import process we hadn't realized. We've taken steps to fix it. If your import was showing as "ready to be inserted into the queue", those jobs are now being moved into the import queue more quickly. (That's why, if you've been watching the queue on the Import Journal page, the numbers just jumped like whoa.)

It will take time for the importer to process all the queued jobs -- whenever there's a surge in account creation, there's a corresponding surge in import jobs -- but fear not, once they're scheduled your import jobs will run. You don't have to leave the page open: just schedule the job and wander off, and sooner or later you will look at your journal and all of your stuff will be there like magic. :)



Basically, the problem was: we actually have two import queues. The first is the queue for the "import-scheduler" job: it verifies your username and password on the remote site (since there's no sense in retrying a job that's going to fail because the authentication is incorrect) and then puts the job into the scheduler queue. From there, a worker moves the job from the scheduler queue to the actual import queue for a TheSchwartz worker to actually do the import. (The reason why our worker-manager is known as TheSchwartz is a long, long story. *G*) The import queue that was showing on the import page is the TheSchwartz import queue, not the import-scheduler queue.

We discovered, when people reported problems with the "ready to be inserted into queue" issue, that the job that moves jobs from the import-scheduler queue to the TheSchwartz import queue was set to only move one job from queue to queue every 60 seconds. This is a delay we built into the system deliberately, and frankly, none of us remembered quite why -- it was either to avoid overwhelming things and was there from the beginning or was a kind of artificial delay that we put in during a period of LJ DDoS. Usually it's not a problem, because very few people are trying to import at any given time and both queues are usually at or close to 0.

So, as it turns out, that "one job every 60 seconds" combined with the high import traffic today meant that there were over 1200 jobs in the import-scheduler queue, being moved to the TheSchwartz import queue very very slowly while more and more came in. Hence the backlog!

We've removed the artificial delay, and jobs are now being moved from the import-scheduler queue into the TheSchwartz import queue as they come in and can be verified. So, the only limit now will be the speed at which the imports can run.

EDIT, 8:40PM EDT: Sorry about the rampant internal server error problems -- we thought it was a problem with the new webserver, but it turned out that imports were happening too fast and were locking up the database. Mark has throttled back the import speed enough that the errors should go away now. (This means that imports will be happening more slowly, but the queue's backed up enough right now that it probably won't make much difference anyway!)

EDIT, 4:30 PM EDT, 12/23: As always happens whenever we have an influx of new users, the import queue is very, very busy right now. Your import will almost certainly take at least a day to finish. Please be patient! Once your job is in the queue, it will complete eventually and you don't need to stay logged into the site or leave your computer on. Just start it and go do other things, and eventually your stuff will catch up with you. :)
moem: A computer drawing that looks like me. (Default)

[personal profile] moem 2011-12-21 11:24 pm (UTC)(link)
Thanks as always! I was wondering, but decided to wait it out, and behold! You've already fixed it!

<3 <3 <3
blackmare: (it's safe)

[personal profile] blackmare 2011-12-21 11:29 pm (UTC)(link)
Thanks for this. I linked it for someone who was worried about the lag time on their import.
amai_kaminari: minekura beer, icon by amai-kaminari (Default)

[personal profile] amai_kaminari 2011-12-21 11:40 pm (UTC)(link)
You're awesome, DW staff! <3
tabaqui: (Default)

[personal profile] tabaqui 2011-12-21 11:41 pm (UTC)(link)
Yay, thank you!
instantramen: macaroni penguin eating squid on a stick (tastes like chi--)

[personal profile] instantramen 2011-12-21 11:50 pm (UTC)(link)
Whenever I see one of you mention TheSchwartz I assume it's a Spaceballs reference. Use the Schwartz!

(no subject)

[personal profile] inoru_no_hoshi - 2011-12-22 00:26 (UTC) - Expand
icelightning: XXY male bettafish, started off looking girlish (Default)

[personal profile] icelightning 2011-12-21 11:52 pm (UTC)(link)
Thanks for the quick solution as always!
geminianeyes: Cute sisters from PW as kids (Default)

[personal profile] geminianeyes 2011-12-22 12:10 am (UTC)(link)
Have I mentioned that you guys are awesome? :D
ironed_orchid: watercolour and pen style sketch of a brown tabby cat curl up with her head looking up at the viewer and her front paw stretched out on the left (Default)

[personal profile] ironed_orchid 2011-12-22 12:21 am (UTC)(link)
You are awesome.
backtothelight: Photo of me in the mirror, holding up camera. (Default)

[personal profile] backtothelight 2011-12-22 12:47 am (UTC)(link)
This kind of honesty and transparency is honestly new to me, as I am a longtime LJ user. I am very impressed. Thank you guys so much.
sophie: A cartoon-like representation of a girl standing on a hill, with brown hair, blue eyes, a flowery top, and blue skirt. ☀ (Default)

[personal profile] sophie 2011-12-22 01:00 am (UTC)(link)
The honesty and transparency here is awesome. Have you seen the code tours yet? They're basically a thing done once every few weeks that looks at all the bugs that have been fixed since the previous code tour and explains every single one in an understandable fashion. (The fixes normally aren't live on the site when a code tour is done, but they become live on the next code push.)

(no subject)

[personal profile] backtothelight - 2011-12-22 01:04 (UTC) - Expand

(no subject)

[personal profile] sophie - 2011-12-22 01:54 (UTC) - Expand

(no subject)

[personal profile] backtothelight - 2011-12-22 02:02 (UTC) - Expand

(no subject)

[personal profile] but_idontlie - 2011-12-22 02:25 (UTC) - Expand

(no subject)

[personal profile] backtothelight - 2011-12-22 02:26 (UTC) - Expand

(no subject)

[personal profile] backtothelight - 2011-12-22 02:47 (UTC) - Expand

(no subject)

[personal profile] sophie - 2011-12-22 05:45 (UTC) - Expand

(no subject)

[personal profile] backtothelight - 2011-12-22 05:54 (UTC) - Expand

(no subject)

[personal profile] not_so_logical - 2011-12-24 18:40 (UTC) - Expand
soc_puppet: Words "Endless Love" in red (^&&X%)

[personal profile] soc_puppet 2011-12-22 12:55 am (UTC)(link)
One more reason y'all are made of awesomesauce ♥
jelazakazone: (Merlin)

[personal profile] jelazakazone 2011-12-22 01:19 am (UTC)(link)
You guys are like magic.
wldcatsprstr_14: (Default)

[personal profile] wldcatsprstr_14 2011-12-22 07:22 am (UTC)(link)
Fancy meeting you here...

(no subject)

[personal profile] jelazakazone - 2011-12-22 12:02 (UTC) - Expand
caeseria: (Iruka smiling)

[personal profile] caeseria 2011-12-22 01:30 am (UTC)(link)
I'm getting a whole boatload of server errors whenever I try to do something at the moment...well, for the last couple of minutes anyway. Is there any connection?

Thanks.

(no subject)

[personal profile] soc_puppet - 2011-12-22 01:36 (UTC) - Expand

(no subject)

[personal profile] caeseria - 2011-12-22 01:36 (UTC) - Expand

(no subject)

[personal profile] soc_puppet - 2011-12-22 01:35 (UTC) - Expand
ashoakandthorn: A noose makes a fine tie (Sandman: Portrait of Death)

[personal profile] ashoakandthorn 2011-12-22 01:36 am (UTC)(link)
All I have to say is this: Thanks for all the work you've put into this site!

It's wonderful, and I always know you'll have our backs and that if there is anything that crops up, I feel like I can come forward and it is actually address.

That said, I had been getting error messages (code 500)too, but they've gone away, whatever you happened to have done worked.

So thank you, thank you, thank you.
skinners_box: (acid)

[personal profile] skinners_box 2011-12-22 01:50 am (UTC)(link)
As part of the mob that is moving over from LJ, I have to say sorry for the mess, but thank you for the responsiveness! This account has already imported and it looks great!
got_swagger: (Default)

[personal profile] got_swagger 2011-12-22 01:50 am (UTC)(link)
You guys are the absolute best! I love how dedicated to being honest and transparent with your users you are!
swankyfunk: (Default)

[personal profile] swankyfunk 2011-12-22 01:52 am (UTC)(link)
Hi, I'm currently importing over 6k entries from my LJ, so it's understandable that it's taking a really long time. But I don't have to stay logged in here, do I? Just wondering. Thanks!
sophie: A cartoon-like representation of a girl standing on a hill, with brown hair, blue eyes, a flowery top, and blue skirt. ☀ (Default)

[personal profile] sophie 2011-12-22 01:56 am (UTC)(link)
Nope! You can close the window and/or log out and it'll still keep chugging along.

(no subject)

[personal profile] swankyfunk - 2011-12-23 16:39 (UTC) - Expand

(no subject)

[personal profile] swankyfunk - 2011-12-23 20:14 (UTC) - Expand

Cross-posting for comm admins?

[personal profile] demarafis - 2011-12-23 05:10 (UTC) - Expand
quicksilver_ink: A happy cartoony face. The text says "Huzzah!" (huzzah)

Thank you!

[personal profile] quicksilver_ink 2011-12-22 02:07 am (UTC)(link)
I haven't been importing entries, but I just wanted to say how awesome it is that you guys are transparent and listen to your userbase. After the latest debacle at LJ, I really appreciate the difference.
owl: Stylized barn owl (Default)

[personal profile] owl 2011-12-22 02:30 am (UTC)(link)
This is a delay we built into the system deliberately, and frankly, none of us remembered quite why

I'm going to guess this is a config setting and not code (or else the commit comment says "Re v 435 - Frobnicated the bobbits")

(no subject)

[personal profile] owl - 2011-12-22 02:46 (UTC) - Expand

(no subject)

[personal profile] owl - 2011-12-22 03:06 (UTC) - Expand

(no subject)

[personal profile] azurelunatic - 2011-12-22 07:11 (UTC) - Expand

(no subject)

[personal profile] azurelunatic - 2011-12-22 07:18 (UTC) - Expand

(no subject)

[personal profile] archangelbeth - 2011-12-23 01:47 (UTC) - Expand

(no subject)

[personal profile] archangelbeth - 2011-12-23 04:37 (UTC) - Expand

(no subject)

[personal profile] reddragdiva - 2011-12-25 09:53 (UTC) - Expand

(no subject)

[personal profile] susanreads - 2011-12-22 15:47 (UTC) - Expand

(no subject)

[personal profile] helens78 - 2011-12-22 02:42 (UTC) - Expand

(no subject)

[personal profile] owl - 2011-12-22 03:28 (UTC) - Expand
die_monster: (fine ass)

[personal profile] die_monster 2011-12-22 03:28 am (UTC)(link)
you guys. YOU GUYS. <33!
schexyschteve: (Default)

[personal profile] schexyschteve 2011-12-22 03:35 am (UTC)(link)
Wow, you all are incredible. I'm getting warm, fuzzy feelings from this site, and I'm brand new here. I like it. :D

Look at the communication with everyone! It's so pretty!
moem: A computer drawing that looks like me. (Default)

[personal profile] moem 2011-12-22 10:52 am (UTC)(link)
Nice, huh. Welcome to Dreamwidth!
skinners_box: (gravity)

[personal profile] skinners_box 2011-12-22 03:39 am (UTC)(link)
So I saw on Twitter that there's a pending tool for comm imports. Is this the comm I should watch for updates on that? I'm waiting with baited breath.

(no subject)

[personal profile] skinners_box - 2011-12-22 03:52 (UTC) - Expand
vickyblueeyez: (Default)

[personal profile] vickyblueeyez 2011-12-22 03:46 am (UTC)(link)
What's the link to see the numbers to the import queue? Also, some LJers are still under the impression that you can import communities. Is this true? Maybe I didn't see the news or something.

(no subject)

[personal profile] vickyblueeyez - 2011-12-22 03:59 (UTC) - Expand

(no subject)

[personal profile] dragonfly - 2011-12-22 04:11 (UTC) - Expand
rezykel: Art by pixiv id: 570530! (Default)

[personal profile] rezykel 2011-12-22 04:00 am (UTC)(link)
Forgive me if this is written elsewhere but I couldn't find it: when you import all the things from LJ, are the security settings on the individual posts also preserved? (Like, if a post was set to Filter X at LJ, it won't suddenly become public or Filter B?)

(no subject)

[personal profile] rezykel - 2011-12-22 04:24 (UTC) - Expand

(no subject)

[personal profile] sophie - 2011-12-22 05:57 (UTC) - Expand
clawdine: Jiling (Default)

[personal profile] clawdine 2011-12-22 04:44 am (UTC)(link)
Hi DW! Using the link provided on the profile page for DW username no longer works on LJ entries! I'm thinking this is asshattery on LJ's part, but just to let you know.

(no subject)

[personal profile] clawdine - 2011-12-22 05:27 (UTC) - Expand

(no subject)

[personal profile] exor674 - 2011-12-22 05:50 (UTC) - Expand

(no subject)

[personal profile] clawdine - 2011-12-22 06:08 (UTC) - Expand

(no subject)

[personal profile] clawdine - 2011-12-22 06:10 (UTC) - Expand
bell: rory gilmore running in the snow in a fancy dress (dw sheep)

[personal profile] bell 2011-12-22 05:34 am (UTC)(link)
Gotta say, the past few days of being stonewalled by LJ reminds me just how much DW's clarity of communication alone makes it worth being here.

(no subject)

[personal profile] nilo - 2011-12-23 22:59 (UTC) - Expand

(no subject)

[personal profile] nilo - 2011-12-23 23:35 (UTC) - Expand

(no subject)

[personal profile] mo - 2011-12-24 17:24 (UTC) - Expand

(no subject)

[personal profile] mo - 2011-12-24 20:14 (UTC) - Expand

(no subject)

[personal profile] kate_nepveu - 2011-12-25 02:40 (UTC) - Expand

(no subject)

[personal profile] mo - 2011-12-25 03:00 (UTC) - Expand

(no subject)

[personal profile] kate_nepveu - 2011-12-25 03:50 (UTC) - Expand

(no subject)

[personal profile] bell - 2011-12-24 03:31 (UTC) - Expand

(no subject)

[personal profile] bell - 2011-12-24 06:41 (UTC) - Expand

Page 1 of 3