Coder Social home page Coder Social logo

Comments (10)

0xd3adsh3ll avatar 0xd3adsh3ll commented on May 3, 2024

Hello,
I'm sorry but maybe you have any information about my issue?
I look forward to a response from your side.
Thanks you a lot for awesome project.

from mcrouter.

Testinos avatar Testinos commented on May 3, 2024

@0xd3adsh3ll,
provided your config is not correct,
-->>session.save_path is correct (tcp://172.18.45.69:5000)
session.ini have different setting.
mcrouter wrong config,
-->> "A":{"servers":["172.18.45.100:11211"]},
"B":{"servers":["172.18.45.101:11211"]}
You memcached server 172.18.45.138:11213

from mcrouter.

0xd3adsh3ll avatar 0xd3adsh3ll commented on May 3, 2024

Hello,
thanks for your reply.
@Testinos my session.ini have a two strings for save_path
1 - uncomment string 172.18.45.138.11213 - it's old instance memcached - work fine because without mcrouter
2 - comment string 172.18.45.69:5000 - it's mcrouter - doesn't work
Schema like this:
Old work fine
|--php_app (session.save_path = tcp://172.18.45.138:11213)
|-------172.18.45.138:11213 - memcached server

New schema:

|--php_app (session.save_path = tcp://172.18.45.69:5000)
|
|---mcrouter
|-----------"A":{"servers":["172.18.45.100:11211"]}
|-----------"B":{"servers":["172.18.45.101:11211"]}
don't work and app crash with error:
"session_write_close(): Failed to write session data (memcache). Please verify that the current setting of session.save_path is correct (tcp://172.18.45.69:5000)"

from mcrouter.

Testinos avatar Testinos commented on May 3, 2024

@0xd3adsh3ll,
set key via telnet work fine?
-> telnet 172.18.45.69 5000
-> set test 0 60 4
->1234

and show mcrouter log file or output.

from mcrouter.

0xd3adsh3ll avatar 0xd3adsh3ll commented on May 3, 2024

Oh...
Can you tell me please route AllAsyncRoute doesn't work in mcrouter? I can't find AllAsyncRoute in wiki.

from mcrouter.

Testinos avatar Testinos commented on May 3, 2024

@0xd3adsh3ll Information from this issue #8 AllAsyncRouter router work.
If you don't want get error if one server down try usage option for set "AllFastestRoute"

from mcrouter.

0xd3adsh3ll avatar 0xd3adsh3ll commented on May 3, 2024

@Testinos hello
currently my mcrouter config is:
http://pastebin.com/wKu7c6Cp
and my /etc/php5/conf.d/session.ini:
http://pastebin.com/1UfTGeNs
So, application work fine, I don't have any errors, but if config of mcrouter replace on:
http://pastebin.com/zuzut4Mw
then application doesn't work with errors:
"session_write_close(): Failed to write session data (memcache). Please verify that the current setting of session.save_path is correct (tcp://mcrouter:5000)"

from mcrouter.

0xd3adsh3ll avatar 0xd3adsh3ll commented on May 3, 2024

"sets" doesn't work correctly with AllAsyncRoute? I need replicated "set" to both servers with memcached and async the best solution for this but I don't understand why it doesn't work.

from mcrouter.

ryanmce avatar ryanmce commented on May 3, 2024

The all async route always returns "not stored" since it returns to the client before it hears back from the server. The client interprets this as an error. You should use something like the all first route or the all sync route, or change your client to interpret "not stored" as a non-error.

On Dec 22, 2014, at 7:12 AM, 0xd3adsh3ll [email protected] wrote:

"sets" doesn't work correctly with AllAsyncRoute? I need replicated "set" to both servers with memcached and async the best solution for this but I don't understand why it doesn't work.


Reply to this email directly or view it on GitHub.

from mcrouter.

0xd3adsh3ll avatar 0xd3adsh3ll commented on May 3, 2024

@ryanmce I think AllFirstRoute good idea for me, and it's works very well.
Thanks a lot.
P.S. I'm confused because I'm was testing configuration with "AllAsyncRoute" with memcached php function "add_server" and this works fine, also I'm was testing with java app and work fine too, but php5 and memcached.so don't works. :(
I close this issue.

from mcrouter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.