English 中文(简体)
Repcastal (failover don t at work)
原标题:Repcached (failover doesn t seem to work)

Been working on the replication of sessions. i downloaded and installed memcached+repcached. now i have no problem replicating data across the two servers while they re both up and running and i have Confirmed this via telnet (telnet 127.0.0.1 11211)

然而,在工厂环境中,一旦一台机器倒闭,就会出现问题。

我的午餐时间为1:0。

我决定不改变营地。 i 正在利用自动启动功能确定储蓄——餐厅和储蓄手。 我还对每个服务器都有一个超标(发送)的例子。 当我上台服务器1时,我不断收到一个“营地警报”(原错误记录)和浏览器坐在那里,等待服务器回来,现在看来,它不把超高频储存转移到其他服务器。 尽管本届会议的所有数据实际上都已复制。 (是否有奴隶主问题?)

PHP 警告: 不详:未能撰写会议数据(表格)。 请核实本届会议的情况。 (127.0.0.1:11211,191.168.100.4:11211)

服务器

$cache_servers = array(
        "127.0.0.1:11211",
        "192.168.100.3:11211"
    );
    ini_set( session.save_handler ,  memcached );
    ini_set( session.save_path , implode( , , $cache_servers));

/usr/ local/bin/memcaled -u no person -p 11211 -m 64 -x 192.168.100.4

服务器

    $cache_servers = array(
        "127.0.0.1:11211",
        "192.168.100.4:11211",
    );
    ini_set( session.save_handler ,  memcached );
    ini_set( session.save_path , implode( , , $cache_servers));

/usr/local/bin/memcached -u nobody -p 11211 -m 64 -x 192.168.100.3 -vv

如果一看概念是错误的,或什么,请提供帮助。 事先感谢你。

问题回答

看来,你正在利用超时的延伸,但改变了超时的做法。 他们不同!

午餐 D 延伸到2版,没有支持。 要么使用超高视器,要么将中高分辨率升至2.0版(尽管目前仍为星塔)。





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签