Author Topic: FA adds "SFW" toggle, site grinds to a halt as a result  (Read 2143 times)

Conan

  • Sean Piche Wannabe Club
  • Postcount ate Whippany, NJ
  • ****
  • Posts: 603
  • E-points: +33/-9
  • ¯\(°_o)/¯
    • View Profile
FA adds "SFW" toggle, site grinds to a halt as a result
« on: August 10, 2012, 09:24:20 pm »
Today on Adventures in Bad Website Development...

Sometime yesterday a bit of Javascript was added to FA that added a "Suitable For Work" option to the mainsite proper (as opposed to the sfw.furaffinity.net site). This button added a single cookie to the user's computer.

At the same time, the site began shitting the bed, with response times flying off the charts.

This has been going on for 36 hours with no word from the staff until just a while ago when the poor response times were chalked up to unspecified "work on the site" that has been "ongoing".

Discuss.

Gryphoneer

  • Posts: 23
  • E-points: +3/-0
  • Maggot Tool With Superiority Complex
    • View Profile
Re: FA adds "SFW" toggle, site grinds to a halt as a result
« Reply #1 on: August 10, 2012, 09:45:18 pm »
At this point "addition of whatever breaks site" is as newsworthy as "dog bites man".

I'm waiting for The Big One that deletes so-and-so-much GB of dogdick.

Ketsuban

  • *
  • Posts: 48
  • E-points: +5/-1
  • Initiated Rube
    • View Profile
Re: FA adds "SFW" toggle, site grinds to a halt as a result
« Reply #2 on: August 11, 2012, 02:44:47 am »
Are they still doggedly insisting that FA is an art site, not a porn site, despite 99.8% of the userbase browsing onehanded?

winserv03fan

  • Dumbest Username Award - May 2012
  • *
  • Posts: 65
  • E-points: +4/-4
  • A Duck!
    • View Profile
Re: FA adds "SFW" toggle, site grinds to a halt as a result
« Reply #3 on: August 11, 2012, 01:33:40 pm »
Of course, deny it.


I just wish it wasn't so ugly too. But when has a new feature looking like shit on FA been a surprise.

Fantastigasm

  • ¿PROBLEM?
  • *
  • Posts: 84
  • E-points: +12/-17
    • View Profile
Re: FA adds "SFW" toggle, site grinds to a halt as a result
« Reply #4 on: August 12, 2012, 02:40:21 am »
I don't think it's a good idea to browse furaffinity at work no matter how safe it might be.

ColonThree

  • **
  • Posts: 123
  • E-points: +16/-3
  • Not a cat
    • View Profile
Re: FA adds "SFW" toggle, site grinds to a halt as a result
« Reply #5 on: August 12, 2012, 06:31:18 am »
This button added a single cookie to the user's computer.

I was under the impression that the mature filter has always worked like this (I'm sure it made sense at the time), and the SFW button simply saves going to the account page to perform the same action.
~Witty quote~

Conan

  • Sean Piche Wannabe Club
  • Postcount ate Whippany, NJ
  • ****
  • Posts: 603
  • E-points: +33/-9
  • ¯\(°_o)/¯
    • View Profile
Re: FA adds "SFW" toggle, site grinds to a halt as a result
« Reply #6 on: August 12, 2012, 12:13:22 pm »
This button added a single cookie to the user's computer.

I was under the impression that the mature filter has always worked like this (I'm sure it made sense at the time), and the SFW button simply saves going to the account page to perform the same action.

The General/Mature/Adult filter is stored in the database afaik. The only cookies you get from FA are UUID's (sessions I'd imagine) and one that's a string of numbers.

Conan

  • Sean Piche Wannabe Club
  • Postcount ate Whippany, NJ
  • ****
  • Posts: 603
  • E-points: +33/-9
  • ¯\(°_o)/¯
    • View Profile
Re: FA adds "SFW" toggle, site grinds to a halt as a result
« Reply #7 on: August 12, 2012, 06:34:13 pm »
So it seems they snuck in another feature: Flood protection

http://forums.furaffinity.net/threads/123355-What-re-your-feelings-on-the-new-flood-protection-FA-has

$50 says this is what's causing the problems.


yak

  • Posts: 4
  • E-points: +0/-0
    • View Profile
Re: FA adds "SFW" toggle, site grinds to a halt as a result
« Reply #8 on: August 13, 2012, 12:49:04 am »
$50 says this is what's causing the problems.
It was a database backup gone wrong that was causing problems. My guess is that --order-by-primary option to mysqldump doesn't work very well for backing up very large tables (index scanning, buffering, diff between the checkpoint created by --single-transaction and current data).
mysqldump is past its usefulness at this point. xtrabackup is a viable alternative, but I need to familiarize myself with it. backing up a disconnected slave is another.
Running online communities is like building a life size replica of the Eiffel tower with snakes.

ColonThree

  • **
  • Posts: 123
  • E-points: +16/-3
  • Not a cat
    • View Profile
Re: FA adds "SFW" toggle, site grinds to a halt as a result
« Reply #9 on: August 13, 2012, 09:01:47 am »
The General/Mature/Adult filter is stored in the database afaik. The only cookies you get from FA are UUID's (sessions I'd imagine) and one that's a string of numbers.

I tried it myself and it does indeed appear to be an entirely separate mechanism, with the presence of the cookie overriding the current setting in the DB. I would hazard a guess that it's done this way as the filter can have 3 settings, whereas the SFW is a simple on/off toggle.
~Witty quote~

Conan

  • Sean Piche Wannabe Club
  • Postcount ate Whippany, NJ
  • ****
  • Posts: 603
  • E-points: +33/-9
  • ¯\(°_o)/¯
    • View Profile
Re: FA adds "SFW" toggle, site grinds to a halt as a result
« Reply #10 on: August 13, 2012, 11:20:59 am »
backing up a disconnected slave is another.

Wouldn't this be a better use for the "backup" machine than it's current task of storing "fa.tar.gz" or whatever it was called?

ProvincialTwit

  • Abuse Dept.
  • Postcount ate Whippany, NJ
  • ****
  • Posts: 774
  • E-points: +72/-33
    • View Profile
Re: FA adds "SFW" toggle, site grinds to a halt as a result
« Reply #11 on: August 13, 2012, 02:28:24 pm »
Whoops looks like I forgot to restart IPTables last time Viv rebooted.

Conan

  • Sean Piche Wannabe Club
  • Postcount ate Whippany, NJ
  • ****
  • Posts: 603
  • E-points: +33/-9
  • ¯\(°_o)/¯
    • View Profile
Re: FA adds "SFW" toggle, site grinds to a halt as a result
« Reply #12 on: August 14, 2012, 06:40:02 pm »


it_keeps_happening.png

Conan

  • Sean Piche Wannabe Club
  • Postcount ate Whippany, NJ
  • ****
  • Posts: 603
  • E-points: +33/-9
  • ¯\(°_o)/¯
    • View Profile
Re: FA adds "SFW" toggle, site grinds to a halt as a result
« Reply #13 on: August 15, 2012, 04:26:25 pm »


Is this still a "backup" and if so why is it running in the middle of the afternoon during peak hours.

EDIT: And now the whole thing has fallen over and is consistently serving error 500 messages.

ColonThree

  • **
  • Posts: 123
  • E-points: +16/-3
  • Not a cat
    • View Profile
Re: FA adds "SFW" toggle, site grinds to a halt as a result
« Reply #14 on: August 15, 2012, 05:30:37 pm »
Is this still a "backup"...

As of about 10 hours ago:
<yak[away]> I'm making a database backup
...
<yak[away]> furaffinity-2012-08-15-data.sql     â”‚ 112892M│-rw-r--r--   I'm 29 and what is this. Goddamn the people on FA like to talk.

[My client mongled a few characters]

No idea if it's related or still going. I assume that means ~112GB?
~Witty quote~

winserv03fan

  • Dumbest Username Award - May 2012
  • *
  • Posts: 65
  • E-points: +4/-4
  • A Duck!
    • View Profile
Re: FA adds "SFW" toggle, site grinds to a halt as a result
« Reply #15 on: August 15, 2012, 05:53:59 pm »
Now I'm even getting 504 Gateway Timeouts.

Looks like shit hit the fan. I mean, I know that no one has heard of working on the server at off hours, but at peak times? Eugh.

Conan

  • Sean Piche Wannabe Club
  • Postcount ate Whippany, NJ
  • ****
  • Posts: 603
  • E-points: +33/-9
  • ¯\(°_o)/¯
    • View Profile
Re: FA adds "SFW" toggle, site grinds to a halt as a result
« Reply #16 on: August 16, 2012, 03:09:09 pm »
Now it's the fault of the load balancer.

Because that always makes SQL load times skyrocket.

zed

  • Posts: 27
  • E-points: +6/-1
  • Uninitiated Rube
    • View Profile
Re: FA adds "SFW" toggle, site grinds to a halt as a result
« Reply #17 on: August 16, 2012, 07:19:57 pm »
Code: [Select]
/**
 * Balances load, experimental
 */
public class LoadBalancerImpl extends LoadBalancer implements FurAffinityWhoAmIKiddingTheyUsePHPForChristsSake {

  // TO-DO: fix magic not working
  //private static boolean magic = true;
  private static boolean magic = false;

  public LoadBalancerImpl() {
    super(magic);
  }

}

zed

  • Posts: 27
  • E-points: +6/-1
  • Uninitiated Rube
    • View Profile
Re: FA adds "SFW" toggle, site grinds to a halt as a result
« Reply #18 on: August 16, 2012, 07:35:45 pm »
And now that the load balancer is done, let's move on to the database controller.

Code: [Select]
public class SFWSubmissionLoader extends SubmissionLoader {

  public Submission load(int id) {
    //if (id = 45) {
      //doMagic(12);
    //}
    Submission sub = super.load(id), temp = null;
    if (sub.sfw != null && (sub.sfw.equals("yes") || sub.sfw.equals("true") || sub.sfw.equals("trUe"))) {
      // Makes sure the image is still SFW
      for (int i = 0; i < 50; i++) {
        temp = super.load(id);
        if (temp.sfw != null && (temp.sfw.equals("yes") || temp.sfw.equals("true") || temp.sfw.equals("trUe"))) {
          sub = null;
        } else {
          // continues
          continue;
          // ends continue
        }
      }
    }
    return sub;
  }
}