Quantcast

Intermittent cache write failures with files or memcached - NginX, PHP-FPM, Load Balanced

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Intermittent cache write failures with files or memcached - NginX, PHP-FPM, Load Balanced

Ryan Willis
Howdy :)

To give you a feel for the environment, we have a highly available configuration of two load balanced web servers and two database servers (master/slave). We are using CakePHP 2.2.1 on NginX and PHP-FPM with PHP 5.4. We are noticing intermittent cache write failures despite having tried both file based caching and memcached. For file based caching, even with permissions being 777 and the umask set to 777, a cache file cannot be overwritten once it is written. On the memcached side, the store failures follow the same pattern. Once it has been written, it cannot be overwritten when it expires.

I am at a loss. At first I thought it had something to do with our file syncing on the web servers but then we moved to memcached to sitestep the issue and we are having the same problem. Any ideas?

Thanks in advance!

--
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
 
 
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Intermittent cache write failures with files or memcached - NginX, PHP-FPM, Load Balanced

Dr. Tarique Sani
What is the error you are getting then attempting to re-write cache?
OR is it that the code is not reaching the write to cache stage?

Tarique

On Thu, Aug 9, 2012 at 10:03 PM, Ryan Willis <[hidden email]> wrote:

> Howdy :)
>
> To give you a feel for the environment, we have a highly available
> configuration of two load balanced web servers and two database servers
> (master/slave). We are using CakePHP 2.2.1 on NginX and PHP-FPM with PHP
> 5.4. We are noticing intermittent cache write failures despite having tried
> both file based caching and memcached. For file based caching, even with
> permissions being 777 and the umask set to 777, a cache file cannot be
> overwritten once it is written. On the memcached side, the store failures
> follow the same pattern. Once it has been written, it cannot be overwritten
> when it expires.
>
> I am at a loss. At first I thought it had something to do with our file
> syncing on the web servers but then we moved to memcached to sitestep the
> issue and we are having the same problem. Any ideas?
>
> Thanks in advance!
>
> --
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to [hidden email].
> To unsubscribe from this group, send email to
> [hidden email].
> Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
>
>



--
=============================================================
PHP for E-Biz: http://sanisoft.com
=============================================================

--
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Intermittent cache write failures with files or memcached - NginX, PHP-FPM, Load Balanced

Ryan Willis
It was a write permissions error on the files and a storage error in Memcached. Oddly enough, I can no longer reproduce these. It must be a server level problem. Thanks for your response and I will update if I figure out what it was.

Ryan

On Thu, Aug 9, 2012 at 9:20 PM, Dr. Tarique Sani <[hidden email]> wrote:
What is the error you are getting then attempting to re-write cache?
OR is it that the code is not reaching the write to cache stage?

Tarique

On Thu, Aug 9, 2012 at 10:03 PM, Ryan Willis <[hidden email]> wrote:
> Howdy :)
>
> To give you a feel for the environment, we have a highly available
> configuration of two load balanced web servers and two database servers
> (master/slave). We are using CakePHP 2.2.1 on NginX and PHP-FPM with PHP
> 5.4. We are noticing intermittent cache write failures despite having tried
> both file based caching and memcached. For file based caching, even with
> permissions being 777 and the umask set to 777, a cache file cannot be
> overwritten once it is written. On the memcached side, the store failures
> follow the same pattern. Once it has been written, it cannot be overwritten
> when it expires.
>
> I am at a loss. At first I thought it had something to do with our file
> syncing on the web servers but then we moved to memcached to sitestep the
> issue and we are having the same problem. Any ideas?
>
> Thanks in advance!
>
> --
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to [hidden email].
> To unsubscribe from this group, send email to
> [hidden email].
> Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
>
>



--
=============================================================
PHP for E-Biz: http://sanisoft.com
=============================================================

--
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.



--
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
 
 
Loading...