Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

fsrtwrace.net

Featured Replies

All, to anyone experiencing "Error 404" issues with the server, there seems to be an issue.

 

I have a support ticket with the provider open. For the time being, just be patient, it does come back intermittently.

 

Thanks

spacer.png

  • Author

So here is the deal on what happened.

 

I run the site on a shared hosting provider in the mid-western United States. This services does allow "unlimited" bandwidth but under a fair use policy. Normally my service gets maybe a couple hundred MB of bandwidth per day, so big deal. During the 4 days of the race, it accumulated almost 4GB of bandwidth, which normally isn't bad but based on normal usage this was out of the ordinary. As such, the provider enacted a policy to "SLOW DOWN" the traffic. It would block various IP's for a period of time in a hope to slow down the traffic. To top it off, the error page it tried to output was actually on the server so since the server was denying requests it couldn't "find" the error page and hence threw out an Error 404. This was due to a misconfiguration.

 

Now alot of this was my own fault unfortunately. The main page had a map on it and team AVSIM uses a tracker for the race (includes weather charts and our various route options). Both of these maps used a 60 second update frequency. It not only refreshed the current positions of the aircraft but also the route polylines. This racing polyline accounted for nearly half of the bandwidth usage, this one request. The problem was instead of just asking for the most RECENT part of the route, i asked for the entire route every refresh for all 3 teams, so as the race progressed, this data pull got longer and longer. Not only does it pull the ICAO code of the airport but the co-ordinates and the information put into the info windows that pop up when you click on them. By Monday evening this was turning out to be 300kb each pull. So if you left this map up all day, it pulled this file 1440 times times the number of people pulling the site. While checking the logs, I found out during peak times the server was being hit with up to 30,000 requests per hour. Every map refresh was 5 requests (1 for path, 1 for current positions, and 1 for each airplane icon created dynamically). This was on top of the normal forum refreshes people were doing and such. To be honest I NEVER in my wildest dreams imagined such data usage all at once. I did manage to throw in a few optimizations Monday night to help the server recover on Tuesday.

 

So NEXT year, i am working out a new strategy. I will either drastically optimize my code to slow down the bandwidth demands or I will purchase one month a virtual server (dont need dedicated) to run the site for that one month to hopefully eliminate this issue.

 

My sincere apologies for the outage. I had no way to predict it.

 

8c834ee57ab728004bdc3bc77336d244.png

spacer.png

Eamom, why don't we just carve out a space for you on AVSIM's servers? What kind of functionality do you require; CGI, that kind of thing?

  • Author

Tom, that would be excellent. Just a server with PHP support with mysql database access really would be all that is needed.

spacer.png

Tom, that would be excellent. Just a server with PHP support with mysql database access really would be all that is needed.

 

We can do that, depending on size of database. Let's trade PM's about it over the next couple of weeks and we can work things out.

Terrific news.

--Mike

--Mike MacKuen
MikeM_AVSIM.png?dl=1

 

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.