MCCS Posted April 29, 2011 Share Posted April 29, 2011 Dear AllI am trying to configure prestashop to work in an redundant cluster, but i run into some issue'sfirst my performance settings:Smarty:Force Compile = noCache = YesCCC (Combine, Compress and Cache):Smart cache for CSS = Use CCC for CSS. Smart cache for JavaScript = Use CCC for JavaScript. Minify HTML = Minify HTML after "smarty compile" execution.Compress inline JavaScript in HTML = Compress inline JavaScript in HTML after "smarty compile" execution High risk HTML compression = Keep W3C validationMedia Servers (use only with CCC):static1.yourwebserver.comstatic2.yourwebserver.comstatic3.yourwebserver.comCiphering:Algorithm = Use Rijndael with mcrypt lib. Caching:Use cache = YesCaching system: Memcached(and i use two internal memcached servers------------------------------------------------------------------------------------------------------------------------------the questions i place here are things i will try to find answers for either by myself or the wonderful help of people who already took the time or experienced what i post here. (thx in advance btw if you assist)Memcachedthe Memcached is working well i see a lot of slabs and things cached. but what is exactly cached? is also session information cached here? or is this cache compiled objects only or does it also include results of sql queries?Sessions.A redundant cluster cannot perform if the sessions are kept shared somewhere. are they stored in the database or memcached? thus are they a part of cacheFS..would be the best way to force php to save its sessions in memcached from the php.ini directive.Performance.as most people notice the cache tuning setting i have above here if you disable the CCC are acceptable but i would like to get the load time below 1.5 seconds in my situation. and for this i would like to enable CCC and use media serversi did setup three virtual hosts pointing to the same folder were the root is of the prestashop.now when i enable CCC i find out the following things that are errors in my firebug results.using https for the CCC files?? and the fiels are not in memcached but in your theme cache folder..https://static2.domain.com/themes/mytheme/cache/3385afdec774e206252b5d559420be1d_all.csshttps://static1.domain.com/themes/mytheme/cache/861ec3a81addab397af926d09a3d3b0b.jsi miss also my hostname in all the images when i enable CCC.. strange ey? and also ssl..https://themes/mytheme/css/"../img/back_top.jpg"- even if SSL is disabled it always tries to load the CCC files with https/SSL and it tries to find the in the cache folder of your template. this forces to buy an multiple domain certificate not a ral good idea. why is this been forced to ssl?- when you would like an redundant cluster then this type of thing is best to store in Memcached otherwise you still get strange cache files on each node on the filesystem and this could give strange results if one of your server fails. because i assume this here that all those CCC files are hashed with an unique filename.. thus it would not be found on the standby node.. etcproblem here is firefox does not load the combined css and js files if the certificate is not valid. to work arround this, i did create an wildcard ssl (*.domainname.com) then i can accept the ssl cert. but still it will not load a lot of images here- so you need to have an correct cert to the ccc files to load.- on the images that do not want to load.. the host nane is missing and " is inserted in between plus on the end of the images file name.. are these things template related, did any one experienced this with using media servers?Thanks in advance Link to comment Share on other sites More sharing options...
Recommended Posts