"RewriteMap"s inefficient (was: [Zope-dev] Apache Mod_rewrite
question)
Dieter Maurer
dieter at handshake.de
Thu Jul 15 16:28:43 EDT 2004
Ganesha Shanmuganathan wrote at 2004-7-14 17:26 -0500:
> ...
>> Now, we use RewriteMaps only when the map files are very small
>> (not more than some dozen entries).
>That is interesting to know. Right now, we use multiple map files but
>each is small. Is there anyother way to do load balncing with Zope
>without Rewrite ?
We use a load balancer (a piece of hardware) for this.
Alternatively, "pond" (or similar) is a software load balancer
implemented in Python.
>>
>> > ... maps with the same name ...
>> >The problem is the cache treats both the file as the same since they
>> >have the same name! Hence if you visit foo.com first, the data stored in
>> >foomap.txt is returned from the cache next time you visit foo.com or
>> >bar.com. This causes apache to redirect into the wrong zope site.
>>
>> We did not observe this behaviour...
>btw, Did you use the same map name (like, in different sections maybe)
>for the different map files.
Yes. The same map file name mapping to different files in different
virtual hosts.
--
Dieter
More information about the Zope-Dev
mailing list