Bug 1186084

Summary: WebUI is very slow if users cannot access Google
Product: [Retired] Zanata Reporter: Ding-Yi Chen <dchen>
Component: PerformanceAssignee: Luke Brooker <lbrooker>
Status: CLOSED CURRENTRELEASE QA Contact: Ding-Yi Chen <dchen>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.5CC: camunoz, tfu, zanata-bugs
Target Milestone: ---   
Target Release: 3.6   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: commit ee36059d40141c68125073c97710087ac8522c26 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-19 07:10:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Ding-Yi Chen 2015-01-27 01:41:19 UTC
Description of problem:
For users that cannot connect to Google, Zanata is very slow.
It took about 1 min for each navigation.

For example, it took 1 min and 8 second from IBus-Chewing project page 
to master branch in https://fedora.zanata.org

Version-Release number of selected component (if applicable):
Zanata 3.5.1 (git-server-3.5.1)

How reproducible:

Steps to Reproduce:
1. Run following command to block Google services (iptables)
   iptables -I INPUT -s -j DROP
   iptables -I INPUT -s -j DROP
   iptables -I INPUT -s -j DROP
   iptables -I INPUT -s -j DROP
   iptables -I INPUT -s -j DROP
   iptables -I INPUT -s -j DROP
   iptables -I INPUT -s -j DROP

2. Ensure you get no connection with Google by 
   ping -c 5 fonts.googleapis.com
   ping -c 5 google.com 

3. Log In to https://fedora.zanata.org or any other server
4. Search ibus-chewing
5. Go to ibus-chewing project page
6. Go to master branch

Actual results:
From 3. Each operation was extreme slow, took about 1 minute to complete each step.

Expected results:
Speed difference should not be significant.

Additional info:

Comment 1 Luke Brooker 2015-01-27 01:52:15 UTC
This should fix the render blocking problem: https://github.com/zanata/zanata-server/pull/672

Comment 2 Luke Brooker 2015-01-27 03:26:53 UTC
Actually now https://github.com/zanata/zanata-server/pull/673

Comment 3 Ding-Yi Chen 2015-01-28 00:45:02 UTC
VERIFIED with intergrate master commit ee36059d40141c68125073c97710087ac8522c26

Comment 4 Ding-Yi Chen 2015-01-28 04:15:53 UTC
VERIFIED with release Zanata 3.6.0-SNAPSHOT (git-jenkins-zanata-server-verify-integration-master-3978-SUCCESS-1-g9e86c7d)