FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Infrastructure

 
 
LinkBack Thread Tools
 
Old 09-15-2010, 03:13 PM
Mike McGrath
 
Default Enable icon caching for pkgdb

Toshio and I worked through this yesterday and agreed the change was worth
it. It's very easy to revert. Can I get 2 +1's?

diff --git a/manifests/servergroups/proxy.pp
b/manifests/servergroups/proxy.pp
index 43e0c69..099305c 100644
--- a/manifests/servergroups/proxy.pp
+++ b/manifests/servergroups/proxy.pp
@@ -401,7 +401,7 @@ class proxy {
fedora-packagedb:roxy { "admin.fedoraproject.org/pkgdb":
website => "admin.fedoraproject.org",
path => "/pkgdb",
- proxyurl => "http://localhost:10003",
+ proxyurl => "http://localhost:6081",
}

bodhi:roxy { "admin.fedoraproject.org/updates":
diff --git a/modules/varnish/files/proxy.vcl
b/modules/varnish/files/proxy.vcl
index 2ba7414..327e1be 100644
--- a/modules/varnish/files/proxy.vcl
+++ b/modules/varnish/files/proxy.vcl
@@ -112,8 +112,9 @@ sub vcl_recv {
if (req.url ~ "^/w/") {
set req.backend = wiki;
}
- if (req.url ~ "^/pkgdb/") {
+ if (req.url ~ "^/pkgdb/appicon/show/") {
set req.backend = pkgdb;
+ unset req.http.cookie;
}
if (req.url ~ "^/mirrorlist/") {
set req.backend = mirrorlists;
@@ -187,6 +188,13 @@ sub vcl_recv {
lookup;
}

+# When requesting application icons, don't allow cherrypy to set cookies
+sub vcl_fetch {
+ if (req.url ~ "^/pkgdb/appicon/show/") {
+ unset obj.http.set-cookie;
+ }
+}
+
# Called if the cache has a copy of the page.
#sub vcl_hit {
# if (req.request == "PURGE")


_______________________________________________
infrastructure mailing list
infrastructure@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/infrastructure
 
Old 09-15-2010, 03:16 PM
 
Default Enable icon caching for pkgdb

+1

--
Matt Domsch
Technology Strategist
Dell | Office of the CTO


-----Original Message-----
From: infrastructure-bounces@lists.fedoraproject.org [mailto:infrastructure-bounces@lists.fedoraproject.org] On Behalf Of Mike McGrath
Sent: Wednesday, September 15, 2010 10:13 AM
To: Infrastructure
Subject: [PATCH] Enable icon caching for pkgdb

Toshio and I worked through this yesterday and agreed the change was worth it. It's very easy to revert. Can I get 2 +1's?

diff --git a/manifests/servergroups/proxy.pp b/manifests/servergroups/proxy.pp index 43e0c69..099305c 100644
--- a/manifests/servergroups/proxy.pp
+++ b/manifests/servergroups/proxy.pp
@@ -401,7 +401,7 @@ class proxy {
fedora-packagedb:roxy { "admin.fedoraproject.org/pkgdb":
website => "admin.fedoraproject.org",
path => "/pkgdb",
- proxyurl => "http://localhost:10003",
+ proxyurl => "http://localhost:6081",
}

bodhi:roxy { "admin.fedoraproject.org/updates":
diff --git a/modules/varnish/files/proxy.vcl b/modules/varnish/files/proxy.vcl index 2ba7414..327e1be 100644
--- a/modules/varnish/files/proxy.vcl
+++ b/modules/varnish/files/proxy.vcl
@@ -112,8 +112,9 @@ sub vcl_recv {
if (req.url ~ "^/w/") {
set req.backend = wiki;
}
- if (req.url ~ "^/pkgdb/") {
+ if (req.url ~ "^/pkgdb/appicon/show/") {
set req.backend = pkgdb;
+ unset req.http.cookie;
}
if (req.url ~ "^/mirrorlist/") {
set req.backend = mirrorlists;
@@ -187,6 +188,13 @@ sub vcl_recv {
lookup;
}

+# When requesting application icons, don't allow cherrypy to set
+cookies sub vcl_fetch {
+ if (req.url ~ "^/pkgdb/appicon/show/") {
+ unset obj.http.set-cookie;
+ }
+}
+
# Called if the cache has a copy of the page.
#sub vcl_hit {
# if (req.request == "PURGE")


_______________________________________________
infrastructure mailing list
infrastructure@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/infrastructure
_______________________________________________
infrastructure mailing list
infrastructure@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/infrastructure
 
Old 09-15-2010, 03:42 PM
Toshio Kuratomi
 
Default Enable icon caching for pkgdb

On Wed, Sep 15, 2010 at 10:13:17AM -0500, Mike McGrath wrote:
> Toshio and I worked through this yesterday and agreed the change was worth
> it. It's very easy to revert. Can I get 2 +1's?
>
> diff --git a/manifests/servergroups/proxy.pp
> b/manifests/servergroups/proxy.pp
> index 43e0c69..099305c 100644
> --- a/manifests/servergroups/proxy.pp
> +++ b/manifests/servergroups/proxy.pp
> @@ -401,7 +401,7 @@ class proxy {
> fedora-packagedb:roxy { "admin.fedoraproject.org/pkgdb":
> website => "admin.fedoraproject.org",
> path => "/pkgdb",
> - proxyurl => "http://localhost:10003",
> + proxyurl => "http://localhost:6081",
> }
>
> bodhi:roxy { "admin.fedoraproject.org/updates":
> diff --git a/modules/varnish/files/proxy.vcl
> b/modules/varnish/files/proxy.vcl
> index 2ba7414..327e1be 100644
> --- a/modules/varnish/files/proxy.vcl
> +++ b/modules/varnish/files/proxy.vcl
> @@ -112,8 +112,9 @@ sub vcl_recv {
> if (req.url ~ "^/w/") {
> set req.backend = wiki;
> }
> - if (req.url ~ "^/pkgdb/") {
> + if (req.url ~ "^/pkgdb/appicon/show/") {
> set req.backend = pkgdb;
> + unset req.http.cookie;
> }
> if (req.url ~ "^/mirrorlist/") {
> set req.backend = mirrorlists;
> @@ -187,6 +188,13 @@ sub vcl_recv {
> lookup;
> }
>
> +# When requesting application icons, don't allow cherrypy to set cookies
> +sub vcl_fetch {
> + if (req.url ~ "^/pkgdb/appicon/show/") {
> + unset obj.http.set-cookie;
> + }
> +}
> +
> # Called if the cache has a copy of the page.
> #sub vcl_hit {
> # if (req.request == "PURGE")
>
>
+1

-Toshio
_______________________________________________
infrastructure mailing list
infrastructure@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/infrastructure
 

Thread Tools




All times are GMT. The time now is 03:21 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org