Multi site/domain dispatcher docroot vs common docroot
Hi,
We tried setting up an multi site - multi domain (using single dispatcher/apache) using multiple virtualhost and farm entries as in docs and have a separate farm entry for dispatcher flush -https://docs.adobe.com/docs/en/dispatcher/disp-domains.html
the docroot is of each site in httpd - virtual host and dispatcher farm is /usr/lib/apache/httpd-2.4.3/htdocs/sitea ,/usr/lib/apache/httpd-2.4.3/htdocs/siteb
dispatcher starts with these configs
farms[farm_sitea].cache.docroot = /usr/lib/apache/httpd-2.4.3/htdocs/sitea
farms[farm_siteb].cache.docroot = /usr/lib/apache/httpd-2.4.3/htdocs/siteb
farms[farm_flush].cache.docroot = /usr/lib/apache/httpd-2.4.3/htdocs
and we see these getting cached under the respective sites docroot
sitea - /sitea/content/sitea , /sitea/content/dam,/sitea/etc
siteb- /siteb/content/siteb , /siteb/content/dam, /siteb/etc
As an observation these are my questions and all the sites are using MSM and site branding is the same
1) How can we prevent repeated cache of /conten/dam and /etc repeating under each site docroot avoiding (large IO space) being used?
2) What will be pro and cons of keeping the common docroot as parent level folder instead of specific site level folders
3) What is advantage of keeping site specific docroot as in https://docs.adobe.com/docs/en/dispatcher/disp-domains.html
We tried (2) to have a common docroot in httpd - virtual host and dispatcher farm refer to parent folder - /usr/lib/apache/httpd-2.4.3/htdocs/
and the dispatcher starts with these configs
farms[farm_sitea].cache.docroot = /usr/lib/apache/httpd-2.4.3/htdocs
farms[farm_siteb].cache.docroot = /usr/lib/apache/httpd-2.4.3/htdocs
farms[farm_flush].cache.docroot = /usr/lib/apache/httpd-2.4.3/htdocs
We tried (2) and it is caching the /content/sitea and /content/siteb and /etc and /content/dam are not repeated as dispatcher cache mirrors the content structure of the publish content
Is there any problem with (2) using same parent docroot for all the sites . We also plan to enable higher statsfilelevel so that cache invalidation happens to respective sites