Notice: Memcache::get() [function.Memcache-get]: marked server
'IP:11212' as failed
Jehiah Czebotar
jehiah at gmail.com
Thu May 24 22:06:07 UTC 2007
I believe the problem is that you are hitting the maximum number of
connections, so when the next client tries to connect, it fails and
marks a server as dead
your stats show [curr_connections] => 1016
the default max connections is 1024... from the cmd line help
-c <num> max simultaneous connections, default is 1024
so you need to start memcached with something like
memcached -c 2048
(or part of the problem may be that you are not pooling connections,
or you are not using persistent connections in your application, but
that's beyond the scope of this answer)
--
Jehiah
On 5/24/07, Ian <mahtems at gmail.com> wrote:
> When I get the php error I'm talking about, this is the stats:
>
> Array ( [pid] => 19301 [uptime] => 26031 [time] => 1180043967 [version] =>
> 1.2.1 [pointer_size] => 32 [rusage_user] => 6.706980 [rusage_system] =>
> 43.318414 [curr_items] => 214666 [total_items] => 238271 [bytes] => 21694807
> [curr_connections] => 1016 [total_connections] => 289112
> [connection_structures] => 1018 [cmd_get] => 414971 [cmd_set] => 238271
> [get_hits] => 280427 [get_misses] => 134544 [bytes_read] => 166112430
> [bytes_written] => 567803979 [limit_maxbytes] => 3221225472 )
>
> > > > > > On 5/24/07, Ian < mahtems at gmail.com> wrote:
> > > > > > > I keep getting that error. It seems to be the servers that have
> the
> > > most
> > > > > > > memory allocated to them, and therefore the most buckets.
> > > > > > >
> > > > > > > This is the connection info ( but with fake IPs for here)
> > > > > > >
> > > > > > > $memcache->addServer(' 1.1.1.82',
> 11211,
> > > true,
> > > > > 4, 1, 5, true);
> > > > > > > $memcache->addServer('1.1.1.82',
> 11212,
> > > true,
> > > > > 4, 1, 5, true);
> > > > > > >
> > > > > > > $memcache->addServer('1.1.1.3', 11211,
> > > true,
> > > > > 3, 1, 5, true);
> > > > > > >
> > > > > > > $memcache->addServer(' 1.1.1.3',
> 11212,
> > > true,
> > > > > 3, 1, 5, true);
> > > > > > >
> > > > > > > $memcache->addServer(' 1.1.1.3',
> 11213,
> > > true,
> > > > > 3, 1, 5, true);
> > > > > > >
> > > > > > > $memcache->addServer('1.1.1.3 ',
> 11214,
> > > true,
> > > > > 3, 1, 5, true);
> > > > > > >
> > > > > > > And then theres 25 more similar.
> > > > > > >
> > > > > > > No matter what I try, I get that error.
> > > > > > >
> > > > > > > My php.ini has this:
> > > > > > >
> > > > > > > memcache.allow_failover = 0
> > > > > > > memcache.max_failover_attempts = 15
> > > > > > > memcache.chunk_size = 60960
> > > > > > >
> > > > > > > Why would it "mark server as failed" when the server is up and
> > > running,
> > > > > > > with the memcached processes running?
> > > > > > >
> > > > > > > What is this error? I don't even understand what it means to
> even
> > > start
> > > > > > > troubleshooting the problem.
> > > > > > >
> > > > > > > Please help me! Thanks
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > Jehiah
> > > >
> > >
> > >
> >
>
>
--
Jehiah
More information about the memcached
mailing list