Sébastien MOREL a écrit :
> -----Message d'origine-----
> De : Gaetano Giunta [mailto:[email protected]] De la part de Gaetano
> Giunta
> Envoyé : jeudi 26 mars 2009 16:08
> À : Sebastien MOREL
> Cc : [email protected]
> Objet : Re: [Sdk-public] Cluster in eZ 4.1 - Important points
>
> Sebastien MOREL a écrit :
>   
>>> Hi,
>>>
>>> I just upgraded my eZ 4.1 in cluster mode. And I found several 
>>> important points for the next version:
>>>
>>> - Clusterize.php needs mysql_ functions, so clustering is impossible 
>>> while using only mysqli.
>>>
>>>       
>> excuse, but it seems to work fine when oracle is in use (even though I 
>> might not have disabled completely the php mysql extension). Can you 
>> point me to the dependency?
>>     
>
> The fatal errors came from :
> kernel\classes\clusterfilehandlers\dbbackends\mysql.php
>
>   
Correct.
In fact there is no eZP cluster driver yet for the mysqli db driver.
>>> - The FileHandler definition have changed. Only the settings/file.ini 
>>> describe it, don’t forget to add it when the 4.1 doc will be ok.
>>>
>>>       
>> I think that is described in the BC docs. Of course it should be in the 
>> upgrade manual, when that is online
>>     
>>> - The DBBackend has changed too. But, the index_image.php still uses 
>>> “mysql” , it’s a bit confusing.
>>>
>>>       
>> Good catch
>>     
Opened an issue for you:

http://issues.ez.no/IssueView.php?Id=14674&ProjectId=3

Otoh I think that changing the name of the constant in index_image.php and thus 
renaming the existing file not really worth the hassle in the end...


>>> Note that, if you define the FileHandler with “mysql” in the file.ini 
>>> and you run the clusterize script, the whole instance is broken. I 
>>> haven’t found the solution to fix, expect by using a backup ;)
>>>
>>>       
>> Care to explain better what results you get? SO that we can try to make 
>> the process less destructive?
>>     
>
> The clusterize script stops at this error : 
>       "Clustering settings specified incorrectly or the chosen file
> handler is ezfs"
>
> I found out that 
> $handler = eZExtension::getHandlerClass( $options ); 
> Return false in : kernel\classes\ezclusterfilehandler.php line 65
> (instance() method)
>
> I tested this 3 times with a fresh backup of my ez instance. 
Which is correct. As there is no cluster driver for mysqli the script 
should stop there with an error.
> Each time after
> the error execution, the whole instance was broken.
>   
This is otoh totally unexpected.
> To fix my instance I cleaned the cache folder manually but nothing.
>
> The errors (when my instance was broken) was the default exception error: 
> An unexpected error has occurred. Please contact the webmaster..
>   

Are you sure you are not having a problem in the main db connection 
configuration?
The error message in fact seems to point to this: now an exception that 
is thrown when connection to the db cannot be established (the main db 
connection, not the one used by the cluster handler).
> I didn't investigate much because I was short.
>
>   
>>> Otherwise, when you know this points everything is OK and works 
>>> perfectly ;)
>>>
>>> I hope these notes will be helpfull.
>>>
>>> Regards.
>>>
>>>       
> Regards
>
>
>
>   

-- 
Sdk-public mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/sdk-public

Reply via email to