0:00:00Welcome to Under the Radar, a show about independent iOS app development.
0:00:04I'm Mark Orment.
0:00:05And I'm David Smith.
0:00:06Under the Radar is never longer than 30 minutes, so let's get started.
0:00:09So, happy new year everyone.
0:00:11We are back in our new fortnightly schedule.
0:00:14So I think as we mentioned in our last episode, we're going to be starting to go to publishing roughly every two weeks from now on,
0:00:22largely just coming from a place of, I think the show is mature enough at this point that
0:00:27a lot of the topics that we've sort of wanted to talk about we've talked about.
0:00:31And I think we were getting a little thin on topics, and we'd rather have fewer episodes that had richer content than to kind of
0:00:39just having an episode every week just to have an episode every week.
0:00:41So that's kind of the motivation behind it, in case you were wondering.
0:00:45And we're going to start off this year kind of in some ways wrapping up a topic that we talked about on the last episode where
0:00:52if you recall, or if you don't, after all the Christmas and New Year celebrations,
0:00:57I was largely talking about dealing with bugs and challenges and sort of ways and means by which to work that out.
0:01:06And I had an interesting update. Usually we don't do follow-up on the show, but I had a little interesting update on the bug that I talked about last week,
0:01:12and then we're going to dive into some more different kinds of bugs and issues that we may have run into over Christmas.
0:01:18So it turned out I was eventually able to find the bug that was driving me crazy in the episode where I was talking about
0:01:26how to reproduce unreproducible bugs. And everything I had tried, there was an issue in Pentameter++
0:01:34where all of a sudden the step counts would go crazy, and suddenly rather than having like 10 or 20 or 30,000 steps like people normally have,
0:01:40it'd be like this person has 16 million steps. And the number would just keep growing.
0:01:45Like every time they opened the app, the number would double. And the doubling, the fact that it was pretty much actually doubling,
0:01:51was certainly a clue that there was some, like somehow this data was getting compounded on itself.
0:01:55But I could not reproduce this. I tried all manner of things. I tried, you know, like, inventing bugs, trying introducing delays,
0:02:04like over, you know, having the saving logic run thousands of times. Nothing I could do to get it to work.
0:02:12Then, right before Christmas, I finally had the final clue that I needed to track it down.
0:02:19And the clue came in the form of a screenshot that somebody had sent me where they were having this bug,
0:02:26and they sent me a screenshot, like, of their phone and of their watch to say, like, you know, like showing me that the numbers were crazy in both places.
0:02:34And what is interesting is that I noticed that the Apple Watch had a slight visual difference to the phone that shouldn't have been there.
0:02:46So in a previous version of the app, the app had been updated to slightly change the font on the Apple Watch.
0:02:53And so it changed the shape of the comma. And I noticed that the comma was still the wrong shape,
0:02:58which meant that the Apple Watch was running the, an old version of the app, but it was talking merrily for days on end with the new version of the app.
0:03:09And that ended up being the root of the problem and ended up being why it was impossible for me to recreate.
0:03:15Because for some, like, that's not a situation that, like, I can just like go into Xcode and be like,
0:03:20"Simulate the Watch Companion app failing to ever update the Apple Watch app."
0:03:25Like, that's not a mode that exists. This isn't something that I think should ever happen.
0:03:30And in regular use, doesn't ever happen. But that's what was happening to me.
0:03:35And so I was hitting this weird situation where the way that, when I changed the way the step counting worked,
0:03:40suddenly the two versions of the app, the old and the new, would talk to each other and they would disagree about what the step counts should be.
0:03:48And because I have all this logic in the app for making sure that I never decrease step counts.
0:03:53If one device says the count was higher, I always let that device win because I never want to show someone that,
0:03:59"Hey, you hit your goal." And then on the other device, I say, "You didn't."
0:04:03So I always kind of, you know, I favor the highest step count.
0:04:07And because of those two things, it combined to create this situation where things just kept doubling out of control.
0:04:12And it turned out that was why. And I coincidentally actually had fixed this because I had versioned one of the fixes in my, like,
0:04:21"I don't know what's going on. I'm just going to try anything I can think of."
0:04:25One of the things I did was I introduced versioning to my watch communication scheme so that it would only,
0:04:33like, versions of the app would only talk to themselves because I'd had, I'd never seen it, but I was like,
0:04:38in my guessing of what could possibly be the case, I had said, "Well, maybe old, like, old messages from an old version of the app could be like pending.
0:04:47You install the update, and then they get stuck in some kind of loop."
0:04:51So, like, I never expected that the two versions of the app could happily coexist for, you know, days or weeks on end.
0:04:57But I thought maybe they would exist in a transient state, and that could kick it off.
0:05:01So I added versioning. It turns out that I did actually fix it, and so everything was fine.
0:05:06And that's the, I guess the moral of the story is don't trust watch connectivity, which I probably knew to start with.
0:05:13That's a good life lesson in general. No, that's wild. I never would have even considered the possibility of a different version
0:05:23between my watch app and my iOS app talking to each other.
0:05:27And it makes sense, like, you can think of scenarios where that might happen, like, you know, where the phone app gets updated,
0:05:33but it hasn't communicated with the watch app yet, and then they get back in range or whatever,
0:05:38and then the watch app starts sending messages before the phone app has had a chance to upgrade it or something.
0:05:44Like, you know, I don't know the full details of how that system works, but, like, it's the kind of thing I would just never have thought of.
0:05:50Yeah, wow. So I pass this on as a cautionary tale. If you're doing anything with watch connectivity,
0:05:56add versioning to your watch connectivity messages to make sure that you don't get bit by this as well.
0:06:02Yeah, I'm gonna do that today. I'm gonna go add my build number to the message dictionary I pass back and forth.
0:06:10Yeah, I think that is just a good, like, best practice going forward.
0:06:13But I hear I was not the only one who had a fun and exciting Christmas time with bugs and challenges.
0:06:19I hear you had some interesting challenges too.
0:06:21You know, sometimes running servers, you can go for months or years without having any problems at all.
0:06:29And then you have a problem at just the worst time, and it makes you think, "Man, I should never run servers again.
0:06:34Like, I should get out of this business." But, you know, the reality is, you know, if you set things up well and you don't have any weird things happen to you,
0:06:42it's generally pretty fine. Like, it's not a lot of work, as we've talked about before.
0:06:46Like, you know, we've talked about how relatively easy and low effort it is to run servers these days.
0:06:50But occasionally, something goes very wrong, and that's what happened to me over Christmas.
0:06:55So, a lot, you know, a little bit of backstory. A lot of Overcast customers had been reporting crashes recently.
0:07:03And I talked about this in the last couple episodes.
0:07:05And so I've been really aggressively working on a series of updates and beta tests to try to find and fix as many crashes as possible.
0:07:14And so one of the more obscure crashes that kept coming up, and I couldn't figure out why,
0:07:19it was happening in some very complex, grand-sensual dispatch code. It was using dispatch timers to coalesce and throttle the rate at which the app makes sync requests to the server.
0:07:33The point of this was to make syncs happen reasonably quickly after data changed, but to not make too many requests in a short time,
0:07:41and to also dynamically throttle back the frequency if you had a low battery level or a low power mode was awesome, or whether you were on cellular.
0:07:49So the whole idea was, like, be smart about how often you sync.
0:07:53Make things sync quickly when they're happening most of the time, but then throttle it back so it doesn't go too heavy and doesn't, like, hammer the server or use up too much battery or whatever else.
0:08:02And so that code, it was using this complex dispatch timer thing that I had based on something forever ago in a Mike Ash blog post.
0:08:10So, you know, pretty advanced code that I didn't really fully understand, if I'm honest.
0:08:14That's all the code I've ever read that Mike Ash wrote.
0:08:16Yeah, it's very advanced. It's a great, great resource, very advanced. A little over my head at times, but anyway.
0:08:23So there was a crash happening with some of the dispatch calls in that code, and I couldn't figure out why, what conditions would lead to that crash.
0:08:30So as one of these builds right before Christmas, I rewrote that code to just be simpler, to just use, like, NS timers and to try to avoid whatever condition was causing crashes there.
0:08:42Because the crashes there were happening, like, with every build I would get reports of it. It would be one of my top crashes.
0:08:46So I figured, I'll find a way to fix this. I'll just rewrite that code to be simpler so I can understand what's going on and to not be so sophisticated.
0:08:54And right before the App Store Connect holiday shut down for Christmas week, that code shipped as version 505 with a bunch of other fixes.
0:09:04So I went away for Christmas to visit family for the week.
0:09:07They live somewhere with no cell coverage from any carrier, not Verizon. There's no cell coverage.
0:09:14And they have the best internet connection they can buy up there, which is a 6 megabit DSL.
0:09:20And that's only 6 megabits down, of course. It's 768K up. And this costs them $80 a month.
0:09:26And this was being shared that week, because it was a house full of family, between 7 people and about 15 devices.
0:09:34So splitting that up is not easy.
0:09:38Now, to make a slow internet connection usable to a lot of people, the router can't let any one device monopolize the connection, especially the upstream.
0:09:46If the upstream is saturated on your internet connection, all those TCP ACK packets from your downloads can't get back out.
0:09:52So it basically kills downloads as well as uploads, and it makes the connection basically feel offline.
0:09:57If the upstream is saturated, you will basically lose connectivity.
0:10:01And when you have 7 people taking 12 megapixel photos and 4K videos on their iOS devices,
0:10:08and iOS devices automatically upload those to iCloud whenever they feel like it or whenever they are plugged in,
0:10:13that 768K of upstream bandwidth gets used very quickly.
0:10:19So what routers do to manage this is they perform QoS, which stands for Quality of Service.
0:10:23This limits how much of the downstream and upstream bandwidth any one device can monopolize.
0:10:28And when you have less bandwidth than you need, QoS on the router is basically a godsend.
0:10:32It makes the difference between the connection being usable for everyone and one person's iCloud upload making it go offline for everyone else.
0:10:38So a few years ago I upgraded them to a Nerdy Ubiquity router, the same kind I use here at home.
0:10:44It has pretty good QoS, it made a huge difference, and it would actually remain usable most of the time, even when you had iCloud uploads going.
0:10:52Now this year I encountered a number of Christmas miracles.
0:10:57This is where Christmas miracle number one came in.
0:11:00So miracle number one, so I had this year to solve some range issues with their previous setup,
0:11:05I upgraded them to an Eero setup with the three wireless things.
0:11:09And I thought the Ubiquity QoS was good until I tried Eero's.
0:11:13And it's way, way better when you have a bunch of people sharing a slow connection.
0:11:18And it's always on, you don't have to set it up, it's typically Eero-style, I don't even think you can configure it, like it's just on.
0:11:24But it was a huge upgrade for QoS, and it made the connection way more responsive.
0:11:32Like my terminal windows were less laggy, like everything was way more responsive, even with all these people using the connection.
0:11:38So that was Christmas miracle number one, and then I soon started needing a lot more miracles.
0:11:44But first, we're sponsored this week by Linode, which, spoiler, ended up being one of my Christmas miracles.
0:11:51So Linode gives you access to a suite of powerful hosting options, prices start at just $5 a month.
0:11:57You can be up and running with your own virtual server in the Linode cloud in under a minute.
0:12:01Even on that slow connection, if you're on your parent's DSL, you can still get it to go in under a minute.
0:12:04Linode has hundreds of thousands of customers, including David and me.
0:12:08We are all serviced by their friendly 24/7 support team.
0:12:11You can email them, call them, or even chat over IRC in the Linode community.
0:12:14They know how important it is to get the help you want, and they have amazing documentation that's open to the public.
0:12:19You don't have to be a member, you can see all the documentation to give you a reference when you need it.
0:12:23And let me tell you, their support saved my behind, and I'll tell you why in a few minutes.
0:12:28But Linode is just fantastic. They have great service, great support, a great control panel.
0:12:33It's wonderful. And all this is backed by fantastic pricing options.
0:12:37Their plans start at 1GB of RAM for just $5 a month, and they offer lots of plans above that for whatever your needs may be, including high memory plans.
0:12:44Listeners of this show can sign up at linode.com/radar.
0:12:48You will be supporting us and get $20 towards any Linode plan.
0:12:52On the 1GB plan, that could be four free months.
0:12:54And with a seven-day money-back guarantee, there's nothing to lose.
0:12:58So go to linode.com/radar to learn more, sign up and take advantage of that $20 credit.
0:13:02And thank you so much to Linode for supporting this show and Relay FM.
0:13:06So the day after Christmas, I started getting reports of very slow syncs, sync errors, and searching not working.
0:13:15And this is really a problem, like searching is especially, that's a huge problem, because if you can't search, you can't add podcasts.
0:13:21And that's a big problem for a podcast player getting lots of new installs for Christmas.
0:13:24So all of this suggested to me that I was having some kind of problem with my servers.
0:13:30Now, when you're on a really slow internet connection, it's really hard to verify if your servers are slow, because you can't really feel it on your own device.
0:13:39From where you're coming from, it's always slow. Everything's slow.
0:13:41And so sure enough, I tried with my phone, and it was slow.
0:13:44But since I had installed that Eero system, and it improved the responsiveness so much, I could actually tell that other things did seem much faster.
0:13:52And even my terminal connection was faster, everything was faster.
0:13:55So clearly, something was up with my servers.
0:13:58Christmas Miracle #2 was a service that has been a past sponsor that I've also used forever called Pingdom.
0:14:04So Pingdom can notify you when stuff goes down, but it also maintains performance logs from all these, it does status checks from around the world.
0:14:11It'll tell you basically the latency, how long it took to do each request.
0:14:14And it keeps a log of this, and it shows you graphs.
0:14:16So I was able to log into Pingdom to get a more objective view of what is performance from my site from around the world, not just from my slow DSL connection I'm using right now.
0:14:25And so sure enough, the response times most of the time were very constant, around 400 milliseconds.
0:14:31And then at the time that everything was feeling slow, it had gone from 400 milliseconds to about 7 seconds.
0:14:38That's quite a lot worse.
0:14:39Yes, quite a lot worse. And that's fairly fatal for pretty much any practical use.
0:14:45And I noticed that it had seemed to correspond to the US workday hours.
0:14:51Like it spiked up at 8 or 9 AM or whatever it was.
0:14:54And this was invaluable to get this info from Pingdom, because I was able to actually see what is the actual state, not just how does it work for me, and to show me a history of what was normal before.
0:15:06And so this verified, this is not normal.
0:15:09And in fact, I was also able to see it wasn't because of the US workday, because that history also showed me that latency was pretty much the same all the time.
0:15:17It didn't vary with the day cycle or the weekday or weekend cycle or anything like that. It was pretty constant.
0:15:23Now, I was a little nervous, because Overcast's peak usage does line up with the US workday.
0:15:30And so I was like, "Oh no." Right before Christmas, I changed the sync timing algorithm.
0:15:38So I thought, "Oh no." This was the day after Christmas. This was the first full-blown US workday for a lot of people since the update had spread to a lot of devices.
0:15:47So I thought, "Oh no, I messed up sync timing, and I'm like DDoSing myself from every copy of my app out there."
0:15:54I'm like, "Oh god, no."
0:15:56So the first thing I did, I very quickly rewrote the sync throttler, and I wrote it even simpler this time, even easier to understand, a little cleaner code separated out into its own class and everything.
0:16:07And I had two main goals, to be less fancy so that I can more understand the conditions that can happen, and to have remotely configurable parameters that I could adjust with server-side code.
0:16:20So the server would tell the app how often to sync with different conditions.
0:16:24So I got that done very quickly. I sent it to beta testers immediately, because I knew I'd have to submit it basically that day, because it was so urgent.
0:16:32Now, by the way, uploading builds to App Store Connect with a 768k upstream is painful and kind of hilarious.
0:16:40Because it doesn't just send the app code. The app is whatever it is, like 20 to 30 megs.
0:16:45But it also sends debugging symbols and bitcode and all the different assets for all the different size classes and everything.
0:16:51So each upload to upload a build took about an hour.
0:16:55So I uploaded one, I was all set to submit it, and then one of the beta testers reported that I broke the sleep timer.
0:17:02So I just had to fix that, upload another build over another hour.
0:17:07But eventually I got one submitted, and I filed the F-sided review request.
0:17:12So had the Christmas shutdown just ended?
0:17:16It was about to end. It was like the last day or two of it.
0:17:19So I wanted to get the app approved the morning that it ended.
0:17:23And so I filed the F-sided review. But I'm like, there's probably a lot of people filing these right now for this, you know, problems that happened this week.
0:17:29And I was getting in just under the wire before it even ended.
0:17:33So I'm like, I'm last in line, I'm filing a request that lots of people have filed, this is probably not going to go well.
0:17:37And meanwhile, my service was nearly unusable during these peak hours.
0:17:42So I'm like, I have to also address this on the server side.
0:17:45So the weird thing was that there was no indication that my servers were under heavy load.
0:17:53Like all the metrics seemed normal.
0:17:55But the web servers were under a higher load than databases.
0:17:58So I first started out like, let me look at the web server performance, it doesn't seem like they're being bottlenecked by the databases, let's see what's going on with web servers.
0:18:06And also that would explain why search requests were also a problem, because search hardly touches the databases.
0:18:11So I targeted web servers first, so Christmas miracle number three was Linode.
0:18:16Because Linode, you know, some problems you need to throw resources at and just see if that fixes it.
0:18:21And with Linode, like, you know, it's virtual servers, you can resize them up and down with different, you know, hardware amounts.
0:18:26You can resize them up and down at will, and it only takes a few minutes.
0:18:29So I thought, attempt number one, if my web servers might have performance problems, just double all their resources and see what happens.
0:18:36So I did a rolling upgrade across them over about an hour, doubled all the capacities, and I knew, you know, no big deal, like, you know, they also do hourly billing.
0:18:44So it's like, if I need to roll it back, I'm only out the cost difference of like the two hours I had the bigger sizes.
0:18:50And it didn't actually end up solving the problem at all.
0:18:54Like, I doubled everything on the web servers, the server upgrades didn't improve any of the, they didn't fix this problem.
0:19:01So I thought, ah crap. And they still weren't under heavy loads, you know.
0:19:04So like, obviously, so like, if the servers are not under load, but everything's slow, there's some kind of bottleneck somewhere else.
0:19:11Something is being a bottleneck. So I started looking deeper.
0:19:14And at first I thought, you know, let me look at my code, see like what requests are taking the longest in code, what functions are taking the longest, what database queries, maybe something.
0:19:23PHP, for all I like about it, is not an easy language to profile.
0:19:28Very few tools are available to do it, and they're very rudimentary.
0:19:32I have my own like time logging thing built into time certain database queries, so I tried using that, but it wasn't revealing anything obvious.
0:19:40And so I did some searches, and a mini Christmas miracle, Stack Overflow, which is always a miracle every day, led me to the two most recommended solutions, which were the New Relic service, which is a commercial service, it's all their thing and it monitors, and a PHP plugin that's been around forever called Xdebug.
0:20:00New Relic has major advantages in theory, like they will aggregate things over multiple requests, and they have all sorts of metrics they collect and everything, they have context with historical data and everything, but I could not for the life of me figure out how much it would cost me.
0:20:13Like their pricing for using it on servers is very confusing, and their website was totally broken. Like I couldn't actually, like the calculators kept breaking, and then at one point I'm like, fine, I'll throw money at it.
0:20:24I'm desperate, I need to fix this now, so I'll pay whatever you want me to pay, and so I tried signing up, and their signup form was broken.
0:20:32So I'm like, alright, well, I guess that's not gonna be an option, so I set up Xdebug on one of my servers.
0:20:38It's very, very basic, it's a PHP extension, you enable it, you restart the server, so you let it run for a while, and it dumps logs to /temp, and it writes like one log file per request, and you can just go in and profile that request and see what happens.
0:20:52There's no aggregation as far as I can see, as you can see, like what requests are taking up all the time in total?
0:20:57So it's just this very kind of brute force, it took forever.
0:21:02But Christmas Miracle number four was a front end called WebGrind. It's a simple open source package that lets you view and navigate the Xdebug files in a web browser, instead of using some kind of weirder Linux tools.
0:21:15So WebGrind was awesome, and it actually did let me find some slow functions and bottlenecks, so I took the next few hours, or most of that day, and just made tons of stuff faster.
0:21:25Ridiculous amounts of things faster. Like one example is, I have a handful of string utilities that, you know, some of PHP's function naming and calling conventions are kind of unintuitive.
0:21:37Like to see if a string contains a substring, you have to call strpos, and you can never remember what order the parameters go in, and then you have to test it against, does it not equal equal false?
0:21:49So it's like, that's weird for me. And so I have a function in my standard utilities library that I put in on my project called contains, that contains a b, and all it does is call strpos does not equal equal false, but it makes the code more readable.
0:22:06Turns out, I learned from profiling, that calling, like, when you call your own PHP user space function, that then calls a system function, it's way slower than just calling a system function directly.
0:22:18It's not a little bit slower like it would be in C, it's a lot slower, because it's calling like one more like PHP space function first.
0:22:24And calling the built-in functions, which are all implemented in C, are way, way, way faster, even just like the call differences.
0:22:31So I found a few hotspots that used a few of my little utilities like this, and I converted them back to the ugly PHP code.
0:22:37And that actually made a pretty big difference in certain types of things.
0:22:41Fixing memcache misses that should have been hits and everything, but eventually I got to the point where my profiling was basically showing like, nothing in particular is taking a lot of time.
0:22:50And so it's like, okay, that's kind of a problem.
0:22:54Then finally, I thought I'd check one more place, the load balancer. I use, it's Linode's managed load balancer called the node balancer, which it's basically equivalent to running like, you know, Nginx or HAProxy on a dedicated machine, but they just take care of all the configuration for you.
0:23:11You do it all on the front end, and they take care of SSL decoding and everything, so it's really nice actually. That's why I use it instead of just doing HAProxy or something.
0:23:19And two things jumped out at me when I looked at the load balancer. So it performs health checks on every back end web server, and I configure those health checks to fail if the web server can't be reached, or it can't reach the database, or it's above a certain load average.
0:23:34And node balancer was not showing failed health checks any time recently, which suggested that the web servers hadn't really been slammed at all since the problem began.
0:23:44Like, they hadn't had their high load average to trip that health failure. So the connection rate graph was the other interesting thing.
0:23:52Normally it was about three or four hundred per second, and it was currently spiked and plateauing at around ten thousand.
0:24:00I remember reading a while back that node balancers have a limit of ten thousand concurrent connections.
0:24:05So somehow the load balancer was getting twenty-five times its usual traffic, but only during the US work day.
0:24:13Oh gosh.
0:24:14And it's like, this is weird, because at about eight pm it fell back down to its usual level. So even without the app update being in people's hands, in the evening it was back down to exactly what it was before.
0:24:26Not higher than it was before, exactly what it was before. And then the following morning, eight am rolls around and it goes back up to ten thousand again.
0:24:33Yay!
0:24:34And again, everything was the same. Web servers didn't appear to be loaded. Something was happening.
0:24:38So anyway, Christmas miracle number three, Linode, came to my rescue again. I filed a support ticket, and I'm like, hey, can you look at this? Like, I don't know what to do here.
0:24:48Something weird is going on with the load balancer, but it doesn't seem to be getting to the back ends.
0:24:51And they gave me a full response in less than an hour. And it was a detailed, it wasn't just like a form, oh we'll get to it soon, or try this.
0:24:59No, it was like, they looked at the packets that were going in, they suggested a few things, they said it was getting fifty thousand packets per second, but that it didn't appear to be like an obvious DDoS, but they said they couldn't rule it out.
0:25:13So the tech suggested putting Cloudflare in front of Overcast, which is, it's like a reverse proxy acceleration service.
0:25:20Having it send traffic to a new node balancer, whose IP would never be in a public DNS entry, so like people couldn't bypass Cloudflare and just go to the node balancer directly, and then shutting down the old one.
0:25:32So it would basically force all traffic to go through Cloudflare.
0:25:35And I was a little nervous, honestly, about this option, because like putting a caching proxy service that I had never used in front of my entire API from an app that does SSL certificate pinning, and doing this in a hurry while on vacation with limited testing abilities on slow DSL, like this was very concerning to me.
0:25:56What could possibly go wrong?
0:25:58But I was also desperate, like I couldn't figure this out.
0:26:02So, Cloudflare came through as Christmas miracle number five.
0:26:06It was, I can't say enough good things about how easy it was to set up, like it was incredibly easy to set up, they really have done a very good job there.
0:26:12And I did their plan, they have a plan that lets you upload your own certificate for SSL, so I did that to avoid pinning problems with the app.
0:26:20And as soon as I did this, the problem was gone.
0:26:24So as the DNS changed, so you know, you change your DNS to point to Cloudflare instead of you, and as that change propagated, within like a couple hours, the pattern was very clear that like the traffic going to the old load balancer was still the giant flood of packets for the next few hours.
0:26:40And the traffic that was coming through Cloudflare, and that was getting to my second new load balancer, was totally normal.
0:26:45Like whatever this was, it was not getting through Cloudflare.
0:26:50And so it went from, you know, crazy, horrible, unusable, to over the next few hours, the problem was gone.
0:26:58And then the next morning, the final Christmas miracle came through, App Review.
0:27:03My fixed version was approved, and it spread through most of the user base over, you know, a couple of days.
0:27:10And so the problem is gone now.
0:27:12And here's the funny thing, I don't actually know what the problem was.
0:27:16I don't know whether it was my fault, whether it was the App Review, like was my sync throttling like going horribly wrong?
0:27:24Was it going crazy and hammering my servers with requests?
0:27:27Was I getting some kind of targeted DDOS attack from some kind of malicious actor?
0:27:31Was the node balancer failing in some weird way?
0:27:34I don't know. I don't know what was going on.
0:27:36I will probably never know, because I just did everything at once.
0:27:40I didn't have time to scientifically test one factor at a time, you know, isolate everything else, control everything else, just test this one thing, you know, to figure out what the exact problem is.
0:27:49Like, this kind of happens sometimes.
0:27:51Like, you're operating from a place of compromise.
0:27:53Like, you have limited capacity, like I was on vacation, it was a weird place, I was urgent timing-wise.
0:27:58So I just threw everything I could at the problem, and it went away.
0:28:02So like, sometimes I guess you got to do that.
0:28:05And I'm just very glad for the help of my Christmas miracles.
0:28:10And especially Linode and Cloudflare, they were incredible during this.
0:28:14But that's what happened, and it kind of inspired me to do a little bit more server work now.
0:28:21Like, I've been spending the last couple days doing a little more stuff.
0:28:25Basically, this actually might end up being two weeks from now episode, because it's too late to fit it in here.
0:28:31But just doing a whole lot of server updates, because like, one of the issues I faced during this big problem was,
0:28:37one of the things I couldn't try easily was add more servers.
0:28:41I could resize the ones I had, but I couldn't easily add more, because like,
0:28:45I've been relying on some old versions of some of the packages and the distros that just like aren't supportive anymore,
0:28:50and make it hard to start up new servers, and cloning is not something I like doing very much.
0:28:54So I couldn't do that, so I'm fixing all that now.
0:28:57But anyway, that was my Christmas story.
0:29:01- That is a rough story.
0:29:04I'm glad it had a happy ending, though.
0:29:06- Yeah, it was finally fixed, and I was able to enjoy the rest of the vacation after that, but
0:29:11I'm kind of, I really am kind of curious what the heck it was,
0:29:15but the fact is, like, the problem is gone, I'll never know, and sometimes that happens.
0:29:21- That was me with my bug, too, where like, I just knew it was fixed.
0:29:25I didn't know which thing I had done fixed it, but I didn't really care at a certain point, because it's like, it's fixed.
0:29:31- Exactly.
0:29:33All right, thanks for listening, everybody, and we'll talk to you in two weeks.
0:29:36- All right, bye.