Okay, all better now.
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Advanced Search
May 1 2017
I have to cancel your vacation again sorry
One broad issue is that admin.phacility.com sees a generally high, sustained request rate of almanac.service.search calls (up to dozens per second). I think the uneven performance I've sometimes observed is just load-related, and that this load is sometimes high enough to max out the Apache workers and cause queue stalls.
Apr 29 2017
Apr 28 2017
Attempt to improve the performance of the almanac.service.search call
bin/host download --phid <phid> --save-as whatever.sql.gz
Apr 27 2017
The next actions I plan to take here are:
Apr 26 2017
GC has caught up to Conduit and the conduit_methodcalllog table is down to 160MB from ~1GB.
bin/storage renamespace --from phabricator --to whatever --in whatever.sql > whatever.renamespaced.sql
I think the Leylines change didn't actually work because we make the call via the LB so the request appears to coming from outside the cluster.
Deploying Leylines + GC changes to admin now.
I used bin/files migrate to move some old files which were stored in MySQL before S3 was configured to S3. The file blob table is now down to 160MB from 477MB.
A big part of this appears to be that dumping the huge Leylines table locks it, so requests can't record their own Leylines data:
Specifically, I'd like to make these changes:
Apr 23 2017
The Aphlict logs should probably get consolidated here too, they're set up a little weird and don't currently rotate during normal deployments.
Apr 21 2017
I'm going to declassify this too since there's nothing private.
Also javelinjs.com currently has bogus DNS, and there's probably no value in continuing to support it for the moment. I'll keep the bills paid on the domain in case we eventually revive Javelin as a standalone framework, but we could safely drop it from config.
Here's what we currently have:
I'm going to kick this out of the ops space since none of this should be sensitive.
Apr 20 2017
In T12607#221036, @epriestley wrote:This is also prrrrobably an awful idea, but in theory we could put, say, HAProxy on each host in front of Apache and have it queue connections while Apache was restarting. That feels like we're building a really flimsy house of cards, but it's something computers could technically do.
This is also prrrrobably an awful idea, but in theory we could put, say, HAProxy on each host in front of Apache and have it queue connections while Apache was restarting. That feels like we're building a really flimsy house of cards, but it's something computers could technically do.
The current ruleset implements all those rules correctly, except that it 200's directly for /status/.
redirect to Javelin
On secure, two not-so-great fixes are:
Sounds good.
I'll file a task for "unfuck status check".
I think you might need to send a Host header to trigger the RedirectMatch... but the LB certainly isn't; it just knows IP/port/path. ¯\_(ツ)_/¯
Oh, maybe not. Things are kind of weird on secure. We should probably sort that out and get that hitting "real" /status/ somehow.
Oh, hrrm. Maybe that RedirectMatch is actually getting hit in practice by the LB, that's suuuper old. I get this from the host itself:
The actual check is elsewhere in that file:
secure is hitting the magic override code in the second link since we deploy rSERVICES there too.
Yeah, I don't like trying to mess with the LBs very much either. I recall the FB F5's (I think?) took like 75 seconds per API call and you needed to make 12 API calls to remove a host, I just figured AWS LBs might be some kind of special magic LBs that can add and remove elements from a list in about a second.
In T12607#220957, @epriestley wrote:On health-check, vanilla Phabricator runs this:
Another possible question here is: how long does it take to pull a node out of an ELB with the AWS API? If it's very fast, maybe worthwhile to pursue actively managing nodes in the LB. But I'm guessing it's at least similar to the ~10s health check stuff.
On health-check, vanilla Phabricator runs this:
I'm pretty sure there's a reasonable way to ask apache to gracefully stop in a blocking way
There's also a discussion to be had about generally increasing the robustness of the healthcheck: that endpoint could attempt a DB connection, look for a full disk, check that ntp status is reasonable, etc, etc. This has tradeoffs as far as creating extra CPU load, false negatives, etc, etc, but there's probably a happy medium between "Apache doing RedirectMatch 200 "^/status/$"" and generating a full page.
Maybe "duration of all file upload requests" / "duration of all requests". That isn't a perfect metric but should be a reasonable-ish proxy for real resources we care about, I think.
What would the appropriate query be? "Number of uploaded files with size greater than X as a percentage of all files/file bytes"?
nice progress bar
I suspect this isn't worth the complexity. If you drag-and-drop, the maximum request size is 4MB (one chunk) and we get a nice progress bar, resumable uploads, and the bucket can remain completely private. And we can do encryption and deduplicate file blocks.
I patched this and deployed it. I'll follow up on the internal report with details.
Thanks, this is fallout from an incident last night. The particulars involved instance and user details so the discussion was kept private. I'll fix this shortly.
Apr 17 2017
Apr 14 2017
Oh right. I mean Phacility doesn't cater to those people anyway since all repositories are private (and can't be public), so I don't think you have much to worry about there.
Apr 13 2017
To clarify, I meant this:
Well, this is a GitHub-like isn't it? In the context of what was quoted, it was specifically GitHub itself that was mentioned.
I'd guess most people use the free Phacility plan because they need private repositories.
I don't think so because there are GitHub like solution that offer private repositories for free.
I'd personally be completely happy if all free users use GitHub forever and we only take their paying users