phabricator 51f8ec4487be02e290b1182a7cd5b4069fe7d49f (Tue, Sep 20) arcanist 9e82ef979e8148c43b9b8439025d505b1219e213 (Thu, Aug 25) phutil fa6519f4cea1c059bd381c20971cac413cc4760e (Thu, Sep 15)
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Advanced Search
Sep 20 2016
@ksmith it's a Python script that you would run on your local machine. If you have arcanist setup for development it should be pretty simple to get it working. Ideally it would just be a plugin, but I didn't look into that approach yet.
Ok I have observed this now on this install, however only in the second haunt mode Z+Z:
https://secure.phabricator.com/D15067
Looking at improving the raw performance of bin/repository update, one fixable issue is that we run git for-each-ref three times:
I also identified an instance with a bad HTTP hook which had managed to queue up 8,000 tasks in the queue. These already have scaling backoffs and likely didn't contribute a meaningful amount of load, but we could perhaps find a more graceful approach to handling bad webhook URIs during T11330.
I disabled the keys of the user running 30 clones/minute and notified the instance administrator. This appeared to create some headroom; I reverted the daemon pool size limits to the default and we're draining the queues at a somewhat more reasonable pace now.
I don't know if this is related but since an hour or so, whenever I push I get an error even though the push appear to work (the commits show up in Diffusion):
$ git push # Push received by "web.phacility.net", forwarding to cluster host. # Waiting up to 120 second(s) for a cluster write lock... # Acquired write lock immediately. # Waiting up to 120 second(s) for a cluster read lock on "repo002.phacility.net"... # Acquired read lock immediately. # Device "repo002.phacility.net" is already a cluster leader and does not need to be synchronized. # Ready to receive on cluster host "repo002.phacility.net". Counting objects: 56, done. Delta compression using up to 8 threads. Compressing objects: 100% (50/50), done. Writing objects: 100% (56/56), 9.30 MiB | 1.84 MiB/s, done. Total 56 (delta 32), reused 1 (delta 0) # Released cluster write lock. AphrontQueryException: #1364: Field 'messageCount' doesn't have a default value To ssh://hyper@vault.phacility.com/diffusion/HYPER/hyper.git 015051e..67b218b master -> master error: failed to push some refs to 'ssh://hyper@vault.phacility.com/diffusion/HYPER/hyper.git'
A contributing issue is that one instance appears to be making clone requests for approximately 30 repositories per minute to this shard. This is easy to rate limit, but probably not easy to rate limit in a generalized, not-a-cluster-hack way.
@epriestley Did you see the AphrontQueryException: #1364: Field 'messageCount' doesn't have a default value problem too?
Hummm I don't know if it was a transient error or I just happened to magically fix it by force pushing to the repo, but git pulls now work again on my Mac and in CI.
Pushing appears to work (as in the commits appear in Diffusion) but errors are printed:
$ git push # Push received by "web.phacility.net", forwarding to cluster host. # Waiting up to 120 second(s) for a cluster write lock... # Acquired write lock immediately. # Waiting up to 120 second(s) for a cluster read lock on "repo002.phacility.net"... # Acquired read lock immediately. # Device "repo002.phacility.net" is already a cluster leader and does not need to be synchronized. # Ready to receive on cluster host "repo002.phacility.net". Counting objects: 11, done. Delta compression using up to 8 threads. Compressing objects: 100% (11/11), done. Writing objects: 100% (11/11), 1.90 KiB | 0 bytes/s, done. Total 11 (delta 10), reused 0 (delta 0) # Released cluster write lock. PHP Fatal error: Uncaught exception 'FilesystemException' with message 'Requested path '/core/log/hyper' is not writable.' in /core/lib/libphutil/src/filesystem/Filesystem.php:1107 Stack trace: #0 /core/lib/libphutil/src/filesystem/Filesystem.php(650): Filesystem::assertWritable('/core/log/hyper') #1 /core/lib/libphutil/src/filesystem/PhutilDeferredLog.php(183): Filesystem::createDirectory('/core//log/hype...', 493, true) #2 /core/lib/libphutil/src/filesystem/PhutilDeferredLog.php(155): PhutilDeferredLog->write() #3 [internal function]: PhutilDeferredLog->__destruct() #4 {main} thrown in /core/lib/libphutil/src/filesystem/Filesystem.php on line 1107 To ssh://hyper@vault.phacility.com/diffusion/HYPER/hyper.git d77b984..6eb6700 master -> master error: failed to push some refs to 'ssh://hyper@vault.phacility.com/diffusion/HYPER/hyper.git'
One remaining issue with backoff/cooldown is that mirrors aren't included: a regularly-updated repository with broken mirrors still tries mirroring. This is somewhat more involved to fix, though (see T6131).
Those changes seem stable. Unclear how much they're really helping, but load is looking at least somewhat better. I'm going to dig into things a bit more and see if I can get a better sense of whether we're on the path to recovery or not.
D16574 retains update cooldowns (so we don't immediately update everything after a restart) and sets up for the following change.
Sep 19 2016
Repository retries (failed mirrors, failed fetches) have no real backoff
I could alternatively throttle down the highly active instances (or all instances on this shard) but that's not too great.
- Maybe a good time to launch new shards? Last tier size increase was 10 months ago (late November, 2015) when I fixed the allocation algorithm to be not a huge wasteful pile of garbage that required us to constantly throw hardware at it.
- Maybe the allocation algorithm should consider active users, not just active instances? I think the 002 shard has the most active users by a hefty margin, just by luck of the draw. But this will tend to be moot at scale.
- Maybe start moving instances between shards? This seems hard to do without downtime today, and doing all the legwork to reduce downtime through clustering is foreboding.
Ohhh nice, thank you I missed that
=C124
And you can technically:
Oh, right. That works, but I think isn't documented:
It's an off-case for sure. We have a ton of data identifiers which all end with an equals-sign and a couple letters/numbers, which we abbreviate when referring to the datasets. I was actually trying to render the equals sign as part of the nav sequence and not just C124.
We could conceivably special-case this since setting an empty attribute to a value isn't meaningful, I suppose.
{nav name=C124}In case someone else ends up with my original problem, I'll mention that https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1518457/comments/69 fixed it.
Some somewhat-good news is that Google Calendar just gives you an .ics blob of garbage to describe recurrence rules:
Things don't look promising.
When you load the configuration web page, the effective configuration is highlighted yellow. If the database value is not null, it might be overriding it, but ./bin/config get should show all the configured values.
I think we should be able to accommodate that fairly easily.
@lyahdav : That looks pretty cool. It's not quite clear to me where it runs. Is this a script that one would install on the same box that phab itself is running on?
Here are 2 use-cases which are both essentially the same in all the important ways:
Sep 18 2016
(comment posted twice for some reason)
I thought I'd throw our use case in here in case it helps:
More generally, here's how I'm planning to model imports, which seems largely consistent with other systems:
Yeah, I fiddled with that but didn't immediately have any luck. It's possible that there's some complex condition like non-self organizer + non-self sender or something. If it only requires non-organizer, it should already work today (e.g., on this install).
Sort of. I'd like to have use cases (what are you trying to do?) first, and I'm not certain what the best representation of dates and times is for external consumption.
@epriestley: Are you open to patches that add more information to the calendar.event.search response? It currently does not even include the event time which is a pretty crucial detail to make the results useful.
Sep 17 2016
For anyone trying to get Kanban statistics / reports in the meantime, you can try this project I recently started working on:
https://github.com/lyahdav/analytics-limn-analytics-data/tree/kanban_stats. It generates a CFD (Cumulative Flow Diagram) and computes cycle time and lead time.
@raincoastchris the context of this issue caught my eye because I've really wanted Phab to generate a cumulative flow chart and Kanban statistics for some time now. I took a stab at it today and modified an existing python script to generate a cumulative flow chart and Kanban statistics (https://github.com/lyahdav/analytics-limn-analytics-data/tree/kanban_stats) but configuring it is a bit painful because there is no easy way to get the names of all the columns in a workboard right now.
I think this is nearly all resolved with NUX.
This probably already works, on the backend, but needs:
Let me know if there is a conversion diff I can follow.