geo-ip latency, or lazy load variables
Markus Jelsma
markus.jelsma at openindex.io
Thu Jun 21 15:35:11 UTC 2012
Hello Payam,
Our configuration is quitelarge and consists of several includes for servers and maps. Could you perhaps be more specific so i can confirm whether our config is designed so the module is more costly? And do you happen to know a work-around or solution for this case?
We have the following modules enabled and disabled:
--with-http_stub_status_module \
--with-http_geoip_module \
--with-http_ssl_module \
--without-http_autoindex_module \
--without-http_browser_module \
--without-http_uwsgi_module \
--without-http_userid_module \
--without-http_upstream_ip_hash_module \
--without-http_split_clients_module \
--without-http_scgi_module \
--without-http_empty_gif_module \
--without-http_geo_module \
--without-http_memcached_module \
--add-module=../modules/agentzh-chunkin-nginx-module-85eca98 \
--add-module=../modules/agentzh-headers-more-nginx-module-3580526 \
--add-module=../modules/simpl-ngx_devel_kit-24202b4 \
--add-module=../modules/agentzh-set-misc-nginx-module-e6a54ab \
--add-module=../modules/gnosek-nginx-upstream-fair-5f6a3b7 \
--add-module=../modules/cep21-healthcheck_nginx_upstreams-16d6ae7 \
--add-module=../modules/agentzh-echo-nginx-module-080c0a1
Thanks,
Markus
-----Original message-----
> From:Payam Chychi <pchychi at gmail.com>
> Sent: Thu 21-Jun-2012 17:28
> To: nginx at nginx.org
> Subject: Re: geo-ip latency, or lazy load variables
>
> Hey Markus,
>
> How does your config look like? I recall the geoip module costing more
> depending on how the configuration is designed
>
> Thanks,
> Payam
>
>
>
>
> On 12-06-21 10:24 AM, Markus Jelsma wrote:
> > Hi,
> >
> > We are testing the Geo-IP module with the city and country databases and noticed a decrease in performance for all locations on the server. It seems that whenever the geoip_country and geoip_city directives are specified the module looks up the geo variables for the IP address even if the variables are not used inside the location. We did the simplest test with Apache Bench against two identical servers on a location that doesn't use the geo variables. One server has the geo databases loaded and the other has them commented out.
> >
> > We did several tests, here are the averages for a few thousand HTTP requests with concurrency level 30:
> >
> > Without geo databases loaded:
> > Time per request: 12.260 [ms]
> > Requests per second: 2446.91 [#/sec]
> >
> > With geo databases loaded:
> > Time per request: 35.352 [ms]
> > Requests per second: 848.60 [#/sec]
> >
> > Is it possible to lazy lookup the values for the geo variables when they are requested?
> >
> > Thanks,
> > Markus
> >
> > _______________________________________________
> > nginx mailing list
> > nginx at nginx.org
> > http://mailman.nginx.org/mailman/listinfo/nginx
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
More information about the nginx
mailing list