Bug 970437 - set-proxy being run when non web cart is scaled (and is slooow)
set-proxy being run when non web cart is scaled (and is slooow)
Product: OpenShift Online
Classification: Red Hat
Component: Kubernetes (Show other bugs)
Unspecified Unspecified
unspecified Severity medium
: ---
: ---
Assigned To: Abhishek Gupta
libra bugs
Depends On:
  Show dependency treegraph
Reported: 2013-06-03 23:29 EDT by Clayton Coleman
Modified: 2015-05-14 20:17 EDT (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-07-23 14:18:15 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Clayton Coleman 2013-06-03 23:29:54 EDT
set-proxy hook (which takes roughly 12s on a devenv) is being executed when a non-web cart is scaled:

June 03 23:21:44 INFO oo_spawn running /sbin/runuser -m -s /bin/sh 770995337996588101402624 -c "exec /usr/bin/runcon 'unconfined_u:system_r:openshift_t:s0:c0,c501' /bin/sh -c \"/var/lib/openshift/770995337996588101402624/haproxy/hooks/set-proxy foo abc 770995337996588101402624 \'770995337996588101402624\'\=\'foo-abc.dev.rhcloud.com\|'
'\'\"": {:unsetenv_others=>true, :close_others=>true, :in=>"/dev/null", :chdir=>"/var/lib/openshift/770995337996588101402624/haproxy", :out=>#<IO:fd 12>, :err=>#<IO:fd 10>}
June 03 23:21:56 INFO oo_spawn running /sbin/runuser 

Here's the deployed manifest (on a scaling app)


I don't believe set proxy is at play because none of the non-web ports are currently haproxy balanced - even if they were we'd want to explicitly indicate that (Load-Balance-TCP or something on each Endpoint).

Not a release blocker, does make set scales slower than it has to be for non-web carts.
Comment 1 Rajat Chopra 2013-06-14 15:10:34 EDT
Sounds like an enhancement. The reason set-proxy is run is because we blindly say 'execute_connections' on scale-up. We do not bother to selectively execute them. 

The selection may be a tricky process.. if there is an indirect dependency, then we are not sure what connections dont need to be run. 

I am going through the ideas.. and will file a new card in the backlog. Keeping the bug opens until then.
Comment 2 manoj 2013-06-17 16:36:48 EDT
Will create a story in Trello
Comment 3 Abhishek Gupta 2013-07-23 14:18:15 EDT
Tracking it as a feature request using trello

Note You need to log in before you can comment on or make changes to this bug.