Page MenuHomePhabricator
Feed Advanced Search

Mar 30 2016

epriestley added a comment to T10695: OOM killer nuked `mysql` on `secure.phabricator.com` after apache2 spawned 75+ workers.

MaxRequestWorkers 24 appears to be creating some issues. This host only serves about 5 requests/second, but I can hit delays with concurrency of 10 (e.g., ab -n100 -c10):

Mar 30 2016, 5:13 PM · Phacility, Ops
epriestley moved T10696: Aphlict slowly grows to use an uncomfortably large amount of memory if the disk is full from Backlog to vNext on the Aphlict board.
Mar 30 2016, 1:59 PM · Aphlict, Phacility, Ops
epriestley added a comment to T10696: Aphlict slowly grows to use an uncomfortably large amount of memory if the disk is full.

The Aphlict logs don't reveal anything useful, and could use some attention: they're heavily geared toward setup/debugging, not maintenance/operations.

Mar 30 2016, 1:16 PM · Aphlict, Phacility, Ops
epriestley added a project to T10696: Aphlict slowly grows to use an uncomfortably large amount of memory if the disk is full: Aphlict.
Mar 30 2016, 1:14 PM · Aphlict, Phacility, Ops
epriestley created T10696: Aphlict slowly grows to use an uncomfortably large amount of memory if the disk is full.
Mar 30 2016, 1:10 PM · Aphlict, Phacility, Ops
epriestley added a comment to T10695: OOM killer nuked `mysql` on `secure.phabricator.com` after apache2 spawned 75+ workers.

I've deployed a MaxRequestWorkers 24 change to this server and wasn't able to get it to burst over 24 workers with ab, so that seems to be working. I'll keep an eye on it for the rest of the week, and the 48 limit will go out to the cluster later this week if no problems turn up.

Mar 30 2016, 12:57 PM · Phacility, Ops
epriestley renamed T10695: OOM killer nuked `mysql` on `secure.phabricator.com` after apache2 spawned 75+ workers from OOM killer nuked `mysql` on `secure.phabricator.com` after numerous simultaneous macro thumbnailing requests (?) forced into a low-memory condition to OOM killer nuked `mysql` on `secure.phabricator.com` after apache2 spawned 75+ workers.
Mar 30 2016, 12:37 PM · Phacility, Ops
epriestley added a comment to T10695: OOM killer nuked `mysql` on `secure.phabricator.com` after apache2 spawned 75+ workers.

To prevent this, I plan to:

Mar 30 2016, 12:37 PM · Phacility, Ops
epriestley added a comment to T10695: OOM killer nuked `mysql` on `secure.phabricator.com` after apache2 spawned 75+ workers.

Here's the smoking gun from /var/log/syslog:

Mar 30 2016, 12:33 PM · Phacility, Ops
epriestley created T10695: OOM killer nuked `mysql` on `secure.phabricator.com` after apache2 spawned 75+ workers.
Mar 30 2016, 5:49 AM · Phacility, Ops

Mar 27 2016

epriestley closed T9745: Configure phurl.io against secure.phabricator.com as Resolved.

This is now fully configured.

Mar 27 2016, 4:52 PM · Ops, Phurl

Mar 25 2016

epriestley moved T9745: Configure phurl.io against secure.phabricator.com from Backlog to Unprotoytpe on the Phurl board.
Mar 25 2016, 7:33 PM · Ops, Phurl

Mar 24 2016

epriestley added a comment to T10629: Rotate the `secure.phabricator.com` SSL certificate.

c( ⁰ 〰 ⁰ )੭

Mar 24 2016, 4:31 AM · Phacility, Ops
chad added a comment to T10629: Rotate the `secure.phabricator.com` SSL certificate.

(•ω•)

Mar 24 2016, 3:31 AM · Phacility, Ops
epriestley added a comment to T10655: Phacility cluster mail deliverability issue .

I requested SES limits of about 2X what we currently need and AWS gave us about 10X, so things look good so far on that front.

Mar 24 2016, 3:13 AM · Ops, Phacility
epriestley added a comment to T9745: Configure phurl.io against secure.phabricator.com.

I did a chunk of this work as part of T10629 and we're in better shape on accepting SSL-terminated traffic now.

Mar 24 2016, 3:11 AM · Ops, Phurl
epriestley closed T10629: Rotate the `secure.phabricator.com` SSL certificate as Resolved.

I've probably updated the notification server certificate, too?

Mar 24 2016, 3:11 AM · Phacility, Ops
epriestley added a comment to T10629: Rotate the `secure.phabricator.com` SSL certificate.

CDN stuff is maybe-sorted.

Mar 24 2016, 2:58 AM · Phacility, Ops
epriestley added a comment to T10629: Rotate the `secure.phabricator.com` SSL certificate.

Something on the CDN side has grown deeply unhappy, looking into it.

Mar 24 2016, 2:44 AM · Phacility, Ops
epriestley added a comment to T10629: Rotate the `secure.phabricator.com` SSL certificate.

Seems OK. Swapping DNS shortly.

Mar 24 2016, 2:36 AM · Phacility, Ops
epriestley added a comment to T10629: Rotate the `secure.phabricator.com` SSL certificate.

This appears to have deployed cleanly. I'm going to test notifications and SSH, and then I'll rebind DNS if they look good.

Mar 24 2016, 2:34 AM · Phacility, Ops
epriestley added a comment to T10629: Rotate the `secure.phabricator.com` SSL certificate.

I'm going to deploy this host with rSERVICES + cluster awareness so it can accept SSL-terminated traffic. If I got something wrong, we may be down for a few minutes.

Mar 24 2016, 2:19 AM · Phacility, Ops
epriestley added a comment to T10629: Rotate the `secure.phabricator.com` SSL certificate.

This is a little bit tricky because notifications use the same hostname, we don't have a wildcard certificate, and we can't (apparently) terminate SSL on the load balancer and pass it through with websockets.

Mar 24 2016, 2:16 AM · Phacility, Ops

Mar 23 2016

chad added a comment to T10655: Phacility cluster mail deliverability issue .

grumpy

Mar 23 2016, 10:31 PM · Ops, Phacility
epriestley added a comment to T10655: Phacility cluster mail deliverability issue .

The upstream provider gave me a not-quite-English canned response:

Mar 23 2016, 10:23 PM · Ops, Phacility
epriestley lowered the priority of T10655: Phacility cluster mail deliverability issue from Unbreak Now! to Normal.
Mar 23 2016, 10:20 PM · Ops, Phacility
epriestley added a comment to T10655: Phacility cluster mail deliverability issue .

I've issued all instances a 24-hour credit for the service disruption. This will be reflected on the next invoice you receive.

Mar 23 2016, 7:54 PM · Ops, Phacility
epriestley updated subscribers of T10655: Phacility cluster mail deliverability issue .
Mar 23 2016, 7:53 PM · Ops, Phacility
epriestley added a comment to T10655: Phacility cluster mail deliverability issue .

Our original upstream provider enabled the account again, also without explanation. Outbound queues are flushing now, but will take some time to completely de-queue because of backoff behavior in the queue.

Mar 23 2016, 7:47 PM · Ops, Phacility
epriestley added projects to T10655: Phacility cluster mail deliverability issue : Phacility, Ops.
Mar 23 2016, 7:41 PM · Ops, Phacility

Mar 19 2016

epriestley added a comment to T10629: Rotate the `secure.phabricator.com` SSL certificate.

I renewed the certificate and launched a new VPC load balancer, which can forward port 22 traffic:

Mar 19 2016, 1:35 PM · Phacility, Ops
epriestley added a comment to T10629: Rotate the `secure.phabricator.com` SSL certificate.

We use secure.phabricator.com for both HTTP/HTTPS and SSH traffic and ELB can't currently forward port 22 -- except the docs now say EC2-VPC LBs can? So I need to figure out what's going on with that.

Mar 19 2016, 1:00 PM · Phacility, Ops
epriestley created T10629: Rotate the `secure.phabricator.com` SSL certificate.
Mar 19 2016, 12:29 PM · Phacility, Ops

Feb 27 2016

epriestley closed T10463: Deploy Almanac v2 Changes to the Cluster as Resolved.

Test instance workflow looks good, and general monitoring also looks clean. I'll keep an eye on things but I think we're in the clear.

Feb 27 2016, 1:56 PM · Phacility, Ops
epriestley added a comment to T10463: Deploy Almanac v2 Changes to the Cluster.

Also, the backup changes from last week (rCOREbf0c93a46f8b) seem to have worked correctly. The instances that were hitting problems and delays have written backups exactly on schedule every day since then.

Feb 27 2016, 1:52 PM · Phacility, Ops
epriestley added a comment to T10463: Deploy Almanac v2 Changes to the Cluster.

Daemons look good -- we accumulated a bit of a queue of backup tasks while the tier was out of sync, but these have now almost completely flushed on their own.

Feb 27 2016, 1:50 PM · Phacility, Ops
epriestley added a comment to T10463: Deploy Almanac v2 Changes to the Cluster.

I've deployed the remainder of the repo tier, and the auxiliary service tiers. I believe deployment is essentially complete.

Feb 27 2016, 1:47 PM · Phacility, Ops
epriestley added a comment to T10463: Deploy Almanac v2 Changes to the Cluster.

repo001 seems to have gone smoothly and daemons/repositories are now restored, I'm deploying the remainder of the tier.

Feb 27 2016, 1:41 PM · Phacility, Ops
epriestley added a comment to T10463: Deploy Almanac v2 Changes to the Cluster.

db tier is deployed, now deploying repo001.

Feb 27 2016, 1:38 PM · Phacility, Ops
epriestley added a comment to T10463: Deploy Almanac v2 Changes to the Cluster.

I've upgraded db001 and sorted out host instances and service sync flows, which seem OK now. I'm going to upgrade the rest of the db tier.

Feb 27 2016, 1:32 PM · Phacility, Ops
epriestley added a comment to T10463: Deploy Almanac v2 Changes to the Cluster.

web is sort of back up, but needs the new schema to actually make any progress, so this isn't conclusive. I'm deploying the db tier now to get the new schema.

Feb 27 2016, 1:19 PM · Phacility, Ops
epriestley added a comment to T10463: Deploy Almanac v2 Changes to the Cluster.
  • I stopped web.
  • I deployed admin.
  • I manually removed now-invalid configuration from instances and from Alamanac properties.
  • I spot-checked instance/Almanac service relationships.
  • I spot-checked Almanac service properties.
  • I manually invoked almanac.service.search to look for issues, but everything looks good.
Feb 27 2016, 1:13 PM · Phacility, Ops
epriestley added a comment to T10463: Deploy Almanac v2 Changes to the Cluster.

I've stopped the daemons. I'm going to stop the web tier, deploy admin, fix instance configuration, then deploy the web tier. I expect this to be the riskiest part of the upgrade.

Feb 27 2016, 1:03 PM · Phacility, Ops
epriestley added a comment to T10463: Deploy Almanac v2 Changes to the Cluster.

I'm getting this underway now. I'm going to preemptively stop all daemons, which will pause repository imports, outgoing mail, etc. They'll be restarted at the end of the process.

Feb 27 2016, 1:00 PM · Phacility, Ops
epriestley created T10463: Deploy Almanac v2 Changes to the Cluster.
Feb 27 2016, 12:26 PM · Phacility, Ops

Nov 21 2015

epriestley added a comment to T9823: Expand Phacility cluster repo and db tiers (add nodes: 005).

There was a minor config issue with db005 but I sorted that out; no users were affected.

Nov 21 2015, 8:56 PM · Phacility, Ops
epriestley closed T9823: Expand Phacility cluster repo and db tiers (add nodes: 005) as Resolved.

The 005 nodes are in production. I'm not going to bother with web002 for now but I'll probably do the other half of that the next time I do ops stuff.

Nov 21 2015, 8:42 PM · Phacility, Ops
epriestley added a revision to T9823: Expand Phacility cluster repo and db tiers (add nodes: 005): Restricted Differential Revision.
Nov 21 2015, 8:29 PM · Phacility, Ops
epriestley added a revision to T9823: Expand Phacility cluster repo and db tiers (add nodes: 005): Restricted Differential Revision.
Nov 21 2015, 8:12 PM · Phacility, Ops
epriestley added a comment to T9823: Expand Phacility cluster repo and db tiers (add nodes: 005).

I've brought up the 005 nodes. I also brought up web002 while I was in there, although we don't appear to be near capacity on web001 yet.

Nov 21 2015, 6:28 PM · Phacility, Ops
epriestley created T9823: Expand Phacility cluster repo and db tiers (add nodes: 005).
Nov 21 2015, 5:45 PM · Phacility, Ops

Nov 9 2015

epriestley created T9745: Configure phurl.io against secure.phabricator.com.
Nov 9 2015, 7:00 PM · Ops, Phurl

Nov 4 2015

epriestley closed T9709: Cycle SSL certificates for `*.phacility.com` (for 2015) as Resolved.

Couple of very minor hiccups with notify not having a completely clean deploy since it doesn't get pushed/expanded very often and was a bit out of date, but should be fixed now.

Nov 4 2015, 1:56 PM · Phacility, Ops
epriestley added a comment to T9709: Cycle SSL certificates for `*.phacility.com` (for 2015).

I've updated lb, alb and clb and the respective domains are now serving updated certificates.

Nov 4 2015, 1:41 PM · Phacility, Ops
epriestley created T9709: Cycle SSL certificates for `*.phacility.com` (for 2015).
Nov 4 2015, 1:30 PM · Phacility, Ops

Oct 15 2015

epriestley closed T9581: Expand Phacility cluster repo and db tiers (add nodes: 004) as Resolved.
  • I closed the 003 nodes to new allocations and opened the 004 nodes.
  • I created a new test instance and verified it allocated on the 004 nodes.
  • I vetted backups, login, web, repo import, and daemon behavior on the new 004 nodes.
  • I also pruned some older test instances off of the 003 nodes and cycled them to give us a little more general headroom on repo003. Load should stabilize over time as more test instances suspend over time.
Oct 15 2015, 7:17 PM · Ops, Phacility
epriestley added a comment to T9581: Expand Phacility cluster repo and db tiers (add nodes: 004).

I brought these nodes up normally, they're deploying now. I'll swap them over and vet things once that finishes up.

Oct 15 2015, 6:58 PM · Ops, Phacility
epriestley created T9581: Expand Phacility cluster repo and db tiers (add nodes: 004).
Oct 15 2015, 6:38 PM · Ops, Phacility

Sep 18 2015

hach-que added a comment to T9431: Deploy an "sbuild" tier outside of the cluster.

fyi libvirt takes just a little over a minute to spin up a Linux build machine using copy-on-write disks (this includes waiting for SSH to come up and connect)

Sep 18 2015, 1:11 AM · Ops, Phacility, Drydock, Almanac

Sep 17 2015

tycho.tatitscheff added a comment to T9431: Deploy an "sbuild" tier outside of the cluster.

Anyway it is not for now !!

Sep 17 2015, 3:26 PM · Ops, Phacility, Drydock, Almanac
tycho.tatitscheff added a comment to T9431: Deploy an "sbuild" tier outside of the cluster.

Some day you'll be able to spin up a container or host per build and tear it down afterward, but doing so creates a performance/efficiency tradeoff because you have to build and tear down more state per build. I suspect this tradeoff is undesirable for this project even if the code existed to make it (because host startup / teardown would likely overwhelm build cost).

Sep 17 2015, 3:26 PM · Ops, Phacility, Drydock, Almanac
epriestley closed T9431: Deploy an "sbuild" tier outside of the cluster as Resolved.

This tier now exists and rCORE knows how to deploy hosts inside it.

Sep 17 2015, 2:46 PM · Ops, Phacility, Drydock, Almanac
epriestley closed T9373: Deploy an "aux" tier in the cluster as Resolved.

This is now up, and rCORE knows how to deploy instances in this tier.

Sep 17 2015, 12:55 PM · Ops, Phacility
epriestley added a comment to T9431: Deploy an "sbuild" tier outside of the cluster.

Some day you'll be able to spin up a container or host per build and tear it down afterward, but doing so creates a performance/efficiency tradeoff because you have to build and tear down more state per build. I suspect this tradeoff is undesirable for this project even if the code existed to make it (because host startup / teardown would likely overwhelm build cost).

Sep 17 2015, 10:53 AM · Ops, Phacility, Drydock, Almanac
tycho.tatitscheff added a comment to T9431: Deploy an "sbuild" tier outside of the cluster.

Although builds will be isolated from services, they won't be isolated from one another. That is, anyone who can run a build can interfere with anything else happening on the same machine.

Sep 17 2015, 6:42 AM · Ops, Phacility, Drydock, Almanac

Sep 16 2015

epriestley created T9431: Deploy an "sbuild" tier outside of the cluster.
Sep 16 2015, 6:29 PM · Ops, Phacility, Drydock, Almanac

Sep 9 2015

epriestley created T9374: Allow `bin/remote` commands to operate on a range of hosts.
Sep 9 2015, 7:11 PM · Ops, Phacility
epriestley moved T9373: Deploy an "aux" tier in the cluster from Backlog to Onboarding/NUX on the Phacility board.
Sep 9 2015, 7:07 PM · Ops, Phacility
epriestley created T9373: Deploy an "aux" tier in the cluster.
Sep 9 2015, 7:07 PM · Ops, Phacility

Sep 1 2015

epriestley added a comment to T8706: Serve blog.phacility.com from the admin host tier.

Corp + Org will also move here after CORGI so this will generally make a good deal of sense as things consolidate.

Sep 1 2015, 3:09 PM · Ops, Phacility

Aug 31 2015

epriestley closed T9187: Phacility Cluster: Daemons outpaced log compaction as Resolved.

These things have been fixed:

Aug 31 2015, 1:30 PM · Ops, Phacility

Aug 29 2015

epriestley closed T9283: Expand Phacility cluster repo and db tiers (add nodes: 003) as Resolved.
  • I closed the 002 services and opened the 003 services.
  • I created a new instance, verified it allocated on 003, connected to it, pushed/pulled, ran backups, etc.
Aug 29 2015, 1:38 PM · Ops, Phacility
epriestley added a comment to T9283: Expand Phacility cluster repo and db tiers (add nodes: 003).
  • I launched repo003 and db003 in the cluster.
  • I created .phacility.net DNS entires for the hosts.
  • I created ddata, dbak, rdata, rbak, and rlog volumes for the hosts and attached them.
  • I created device entries for the hosts and *bak volumes.
  • I created service entries for the new repox and dbx services.
  • I used bin/remote deploy to deploy the hosts.
Aug 29 2015, 1:25 PM · Ops, Phacility
epriestley created T9283: Expand Phacility cluster repo and db tiers (add nodes: 003).
Aug 29 2015, 12:35 PM · Ops, Phacility

Aug 20 2015

epriestley added a comment to T9187: Phacility Cluster: Daemons outpaced log compaction.

This seems to have completed without incident.

Aug 20 2015, 3:12 PM · Ops, Phacility
epriestley added a comment to T9187: Phacility Cluster: Daemons outpaced log compaction.

I've added support for dedicated log volumes (see commit above). Only repo class hosts currently have much use for them, although I'd expect to deploy them more widely eventually.

Aug 20 2015, 3:00 PM · Ops, Phacility

Aug 19 2015

epriestley added a comment to T9187: Phacility Cluster: Daemons outpaced log compaction.

D13939 will fix T8672, the most immediate cause of high log volumes, but I'm going to hold it until after we cut the release since it also raises the urgency of potential existing errors.

Aug 19 2015, 1:44 PM · Ops, Phacility
epriestley moved T9187: Phacility Cluster: Daemons outpaced log compaction from Backlog to Do After Launch on the Phacility board.
Aug 19 2015, 1:40 PM · Ops, Phacility
epriestley added a revision to T9187: Phacility Cluster: Daemons outpaced log compaction: Restricted Differential Revision.
Aug 19 2015, 1:10 PM · Ops, Phacility

Aug 14 2015

epriestley added a comment to T9187: Phacility Cluster: Daemons outpaced log compaction.

I'm planning to take these corrective actions:

Aug 14 2015, 7:25 PM · Ops, Phacility
epriestley added a comment to T9187: Phacility Cluster: Daemons outpaced log compaction.

Some contributing issues:

Aug 14 2015, 7:12 PM · Ops, Phacility
epriestley added a comment to T9187: Phacility Cluster: Daemons outpaced log compaction.

I cycled the host to trigger compaction and bring everything back up, which seems to have resolved the initial issue.

Aug 14 2015, 7:00 PM · Ops, Phacility
epriestley created T9187: Phacility Cluster: Daemons outpaced log compaction.
Aug 14 2015, 6:57 PM · Ops, Phacility

Jul 24 2015

epriestley added a comment to T8685: Move secure.phabriactor.com halfway into the cluster.

I've decommissioned the old secure.phabricator.com host.

Jul 24 2015, 7:03 PM · Ops

Jul 13 2015

• bnealey added a watcher for Ops: • bnealey.
Jul 13 2015, 4:02 AM
• bnealey added a member for Ops: • bnealey.
Jul 13 2015, 4:02 AM

Jul 7 2015

epriestley set the image for Ops to F595837: project.png.
Jul 7 2015, 3:24 PM
epriestley changed the visibility for Ops.
Jul 7 2015, 3:24 PM

Jul 6 2015

epriestley closed T8764: Reduce impact of backups on running instances as Resolved.

I pushed a change to record instance out-of-service dates (D13561) and stop running backups for out-of-service instances after about 48 hours (D13563). I promoted these changes to rSAAS stable and deployed admin. I manually updated all "Suspended" and "Disabled" instances to have an out-of-service date of July 1, 2015.

Jul 6 2015, 6:35 PM · Phacility, Ops
epriestley added a comment to T8764: Reduce impact of backups on running instances.

I stopped storage upgrade from running on out-of-service instances (rCOREe9f998b109c1) and upgraded db002 and repo002 to verify this change. We don't need to keep out-of-service schemata up to date, and this reduces the ongoing cost of out-of-service instances.

Jul 6 2015, 5:01 PM · Phacility, Ops
epriestley added a revision to T8764: Reduce impact of backups on running instances: Restricted Differential Revision.
Jul 6 2015, 4:52 PM · Phacility, Ops
epriestley added a revision to T8764: Reduce impact of backups on running instances: Restricted Differential Revision.
Jul 6 2015, 4:31 PM · Phacility, Ops
epriestley added a comment to T8764: Reduce impact of backups on running instances.

I no-op'd the debian-start script and deployed db002 with the new changes (rCORE51d7570f5ddf) to verify it. I'm not going to restart db001 for the moment, since bringing it down is more disruptive and I only need confidence that the change is correct.

Jul 6 2015, 4:10 PM · Phacility, Ops
epriestley added a comment to T8764: Reduce impact of backups on running instances.

I've restarted the tier with a ~50% buffer pool configuration (4GB of 7.5GB) and 8GB swap (rCORE471d3a7acee1) and things seem to be holding stable. I'll pursue the other changes now.

Jul 6 2015, 3:56 PM · Phacility, Ops
epriestley added a comment to T8764: Reduce impact of backups on running instances.

Ubuntu also ships with some debian-sys-maint junk which runs huge, slow queries to check for problematic table data on every restart, which we should likely disable.

Jul 6 2015, 3:51 PM · Phacility, Ops
epriestley added a comment to T8764: Reduce impact of backups on running instances.

While I was writing this up, the host ran out of RAM and stopped working, so this is probably a memory management issue.

Jul 6 2015, 3:42 PM · Phacility, Ops
epriestley added a comment to T8764: Reduce impact of backups on running instances.

Some immediate observations:

Jul 6 2015, 3:41 PM · Phacility, Ops
epriestley created T8764: Reduce impact of backups on running instances.
Jul 6 2015, 2:46 PM · Phacility, Ops

Jul 3 2015

epriestley added a comment to T8685: Move secure.phabriactor.com halfway into the cluster.

I don't want to install it on cluster hosts, see T7785.

Jul 3 2015, 8:41 PM · Ops
chad added a comment to T8685: Move secure.phabriactor.com halfway into the cluster.

Need Graphviz install too, pls. Test Page

Jul 3 2015, 8:40 PM · Ops