Hello all,<br><br>I have a question on using mod_perl to configure apache for many virtual hosts. My problem is the high load on the apache server. I decided to go with mod_perl to configure apache and here are the reasons (if I should be doing this a different way, please say so. I&#39;m open to suggestions).:<br>
<br>The company I work at has ~13,000 customer domains. There is a database where these domains are configured. Some of them are &quot;standard&quot; packages and simply have a document root where customers upload pages. Some of the domains make proxy requests to another site. And still others make a proxied rewrite from &quot;/&quot; to &quot;some random url that is stored in the db&quot;. Some redirect to another url. There are about 20 other such configurations.<br>
<br>I used mod_perl to load all of this up at startup and it worked beautifully. I originally thought that I would be able to dynamically setup VirtuaHost sections as requests came in for domains (maybe they were freshly added to the db or the record updated). But I found you can&#39;t really do that so I have to restart for changes to take effect. Either way, I&#39;m very happy with how easy and clean mod_perl has made all of this.<br>
<br>But the load on apache runs anywhere from 0.50 to 3.00 on a dual cpu server. Response doesn&#39;t seem slow (except for right after an apache restart) but I&#39;m worried that I&#39;m doing something fundamentally wrong. There is a significant amount of proxying going on so I set &quot;ProxyReceiveBufferSize 16384&quot; but that doesn&#39;t seem to have changed too much. Are there any initial thoughts anyone has? Has anyone run into something similar? Should I be going about this a different way?<br>
<br>Related: and would it be possible to add config on-the-fly? $r-&gt;add_config() Won&#39;t let you add VirtualHosts because it operates as though in a &lt;Location&gt; directive.<br><br>I guess I&#39;m just looking for thoughts in general. I&#39;ve been tinkering with this for about 2 weeks now.<br>
<br>Thanks,<br>Josh J<br>