Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using repcached for session slows down php module loading with version 8.2. (PHP 8.2) #112

Open
wol-827 opened this issue Aug 7, 2023 · 0 comments

Comments

@wol-827
Copy link

wol-827 commented Aug 7, 2023

I use repcached for session and data redundancy.
For some reason, version 8.2 is slow to load modules and sessions.
I found that there was a timeout when connecting to the memcached server when executing "php -i".
Here is the memcache server log.

Log

"php-repcached-issue-memcached1-1" is fine.
But "php-repcached-issue-memcached2-1" loops until it times out.

php-repcached-issue-memcached1-1 | <33 new auto-negotiating client connection
php-repcached-issue-memcached1-1 | 33: Client using the ascii protocol
php-repcached-issue-memcached1-1 | <33 incr 48c0f0cceb29e256758cb526a22b7ef5.lock 1
php-repcached-issue-memcached1-1 | >33 NOT_FOUND
php-repcached-issue-memcached1-1 | <33 add 48c0f0cceb29e256758cb526a22b7ef5.lock 768 15 1
php-repcached-issue-memcached1-1 | >33 STORED
php-repcached-issue-memcached1-1 | replication: pop
php-repcached-issue-memcached1-1 | replication: pop
php-repcached-issue-memcached2-1 | <26 rep 48c0f0cceb29e256758cb526a22b7ef5.lock 768 1691392477 1 48
php-repcached-issue-memcached2-1 | REP>26 STORED
php-repcached-issue-memcached1-1 | <33 get 48c0f0cceb29e256758cb526a22b7ef5
php-repcached-issue-memcached1-1 | >33 END
php-repcached-issue-memcached2-1 | <33 new auto-negotiating client connection
php-repcached-issue-memcached2-1 | 33: Client using the ascii protocol
php-repcached-issue-memcached2-1 | <33 incr 48c0f0cceb29e256758cb526a22b7ef5.lock 1
php-repcached-issue-memcached2-1 | >33 2
php-repcached-issue-memcached2-1 | <33 add 48c0f0cceb29e256758cb526a22b7ef5.lock 768 15 1
php-repcached-issue-memcached2-1 | >33 NOT_STORED
php-repcached-issue-memcached2-1 | replication: pop
php-repcached-issue-memcached2-1 | <33 get 48c0f0cceb29e256758cb526a22b7ef5
php-repcached-issue-memcached2-1 | >33 END
php-repcached-issue-memcached2-1 | replication: pop
php-repcached-issue-memcached1-1 | <31 rep 48c0f0cceb29e256758cb526a22b7ef5.lock 768 1691392477 1 41
php-repcached-issue-memcached1-1 | REP>31 STORED
php-repcached-issue-memcached2-1 | <33 incr 48c0f0cceb29e256758cb526a22b7ef5.lock 1
php-repcached-issue-memcached2-1 | >33 3
php-repcached-issue-memcached2-1 | replication: pop
php-repcached-issue-memcached2-1 | <33 add 48c0f0cceb29e256758cb526a22b7ef5.lock 768 15 1
php-repcached-issue-memcached2-1 | >33 NOT_STORED
php-repcached-issue-memcached2-1 | <33 get 48c0f0cceb29e256758cb526a22b7ef5
php-repcached-issue-memcached2-1 | >33 END
php-repcached-issue-memcached2-1 | replication: pop
php-repcached-issue-memcached1-1 | <31 rep 48c0f0cceb29e256758cb526a22b7ef5.lock 768 1691392477 1 42
php-repcached-issue-memcached1-1 | REP>31 STORED
php-repcached-issue-memcached2-1 | <33 incr 48c0f0cceb29e256758cb526a22b7ef5.lock 1
php-repcached-issue-memcached2-1 | >33 4
php-repcached-issue-memcached2-1 | <33 add 48c0f0cceb29e256758cb526a22b7ef5.lock 768 15 1
php-repcached-issue-memcached2-1 | replication: pop
php-repcached-issue-memcached2-1 | replication: pop
php-repcached-issue-memcached2-1 | >33 NOT_STORED
php-repcached-issue-memcached2-1 | <33 get 48c0f0cceb29e256758cb526a22b7ef5
php-repcached-issue-memcached2-1 | >33 END
php-repcached-issue-memcached1-1 | <31 rep 48c0f0cceb29e256758cb526a22b7ef5.lock 768 1691392477 1 43
php-repcached-issue-memcached1-1 | REP>31 STORED
php-repcached-issue-memcached2-1 | <33 incr 48c0f0cceb29e256758cb526a22b7ef5.lock 1
php-repcached-issue-memcached2-1 | >33 5
php-repcached-issue-memcached2-1 | replication: pop
php-repcached-issue-memcached2-1 | <33 add 48c0f0cceb29e256758cb526a22b7ef5.lock 768 15 1
php-repcached-issue-memcached2-1 | replication: pop
php-repcached-issue-memcached2-1 | >33 NOT_STORED
php-repcached-issue-memcached2-1 | <33 get 48c0f0cceb29e256758cb526a22b7ef5
php-repcached-issue-memcached1-1 | <31 rep 48c0f0cceb29e256758cb526a22b7ef5.lock 768 1691392477 1 44
php-repcached-issue-memcached1-1 | REP>31 STORED
php-repcached-issue-memcached2-1 | >33 END
php-repcached-issue-memcached2-1 | <33 incr 48c0f0cceb29e256758cb526a22b7ef5.lock 1
php-repcached-issue-memcached2-1 | >33 6
php-repcached-issue-memcached2-1 | replication: pop
php-repcached-issue-memcached2-1 | <33 add 48c0f0cceb29e256758cb526a22b7ef5.lock 768 15 1
php-repcached-issue-memcached2-1 | >33 NOT_STORED
php-repcached-issue-memcached2-1 | <33 get 48c0f0cceb29e256758cb526a22b7ef5
php-repcached-issue-memcached1-1 | <31 rep 48c0f0cceb29e256758cb526a22b7ef5.lock 768 1691392477 1 45
php-repcached-issue-memcached1-1 | REP>31 STORED
php-repcached-issue-memcached2-1 | >33 END
php-repcached-issue-memcached2-1 | replication: pop
php-repcached-issue-memcached2-1 | <33 incr 48c0f0cceb29e256758cb526a22b7ef5.lock 1
php-repcached-issue-memcached2-1 | >33 7
php-repcached-issue-memcached2-1 | replication: pop
php-repcached-issue-memcached2-1 | <33 add 48c0f0cceb29e256758cb526a22b7ef5.lock 768 15 1
php-repcached-issue-memcached2-1 | >33 NOT_STORED
php-repcached-issue-memcached2-1 | <33 get 48c0f0cceb29e256758cb526a22b7ef5
php-repcached-issue-memcached2-1 | >33 END
php-repcached-issue-memcached2-1 | replication: pop
php-repcached-issue-memcached1-1 | <31 rep 48c0f0cceb29e256758cb526a22b7ef5.lock 768 1691392477 1 46
php-repcached-issue-memcached1-1 | REP>31 STORED
php-repcached-issue-memcached1-1 | <31 rep 48c0f0cceb29e256758cb526a22b7ef5.lock 768 1691392477 1 47
php-repcached-issue-memcached1-1 | REP>31 STORED
php-repcached-issue-memcached2-1 | <33 incr 48c0f0cceb29e256758cb526a22b7ef5.lock 1
php-repcached-issue-memcached2-1 | >33 8
php-repcached-issue-memcached2-1 | replication: pop
php-repcached-issue-memcached2-1 | <33 add 48c0f0cceb29e256758cb526a22b7ef5.lock 768 15 1
php-repcached-issue-memcached2-1 | >33 NOT_STORED
php-repcached-issue-memcached2-1 | <33 get 48c0f0cceb29e256758cb526a22b7ef5
php-repcached-issue-memcached2-1 | >33 END
php-repcached-issue-memcached2-1 | replication: pop
php-repcached-issue-memcached2-1 | <33 incr 48c0f0cceb29e256758cb526a22b7ef5.lock 1
php-repcached-issue-memcached2-1 | >33 9
php-repcached-issue-memcached2-1 | replication: pop
php-repcached-issue-memcached2-1 | replication: pop
php-repcached-issue-memcached1-1 | <31 rep 48c0f0cceb29e256758cb526a22b7ef5.lock 768 1691392477 1 48
php-repcached-issue-memcached1-1 | REP>31 STORED
php-repcached-issue-memcached2-1 | <33 add 48c0f0cceb29e256758cb526a22b7ef5.lock 768 15 1
php-repcached-issue-memcached2-1 | >33 NOT_STORED
php-repcached-issue-memcached2-1 | <33 get 48c0f0cceb29e256758cb526a22b7ef5
php-repcached-issue-memcached2-1 | >33 END
php-repcached-issue-memcached2-1 | <33 incr 48c0f0cceb29e256758cb526a22b7ef5.lock 1
php-repcached-issue-memcached2-1 | >33 10
php-repcached-issue-memcached2-1 | <33 add 48c0f0cceb29e256758cb526a22b7ef5.lock 768 15 1
php-repcached-issue-memcached2-1 | >33 NOT_STORED
php-repcached-issue-memcached2-1 | <33 get 48c0f0cceb29e256758cb526a22b7ef5
php-repcached-issue-memcached2-1 | replication: pop
php-repcached-issue-memcached2-1 | >33 END
php-repcached-issue-memcached2-1 | replication: pop
php-repcached-issue-memcached1-1 | <31 rep 48c0f0cceb29e256758cb526a22b7ef5.lock 768 1691392477 2 49
php-repcached-issue-memcached1-1 | REP>31 STORED
php-repcached-issue-memcached2-1 | <33 incr 48c0f0cceb29e256758cb526a22b7ef5.lock 1
php-repcached-issue-memcached2-1 | >33 11
php-repcached-issue-memcached2-1 | replication: pop
php-repcached-issue-memcached1-1 | <31 rep 48c0f0cceb29e256758cb526a22b7ef5.lock 768 1691392477 2 50
php-repcached-issue-memcached1-1 | REP>31 STORED
php-repcached-issue-memcached2-1 | <33 add 48c0f0cceb29e256758cb526a22b7ef5.lock 768 15 1
php-repcached-issue-memcached2-1 | >33 NOT_STORED
php-repcached-issue-memcached2-1 | replication: pop
php-repcached-issue-memcached2-1 | <33 get 48c0f0cceb29e256758cb526a22b7ef5
php-repcached-issue-memcached2-1 | >33 END
php-repcached-issue-memcached2-1 | <33 incr 48c0f0cceb29e256758cb526a22b7ef5.lock 1
php-repcached-issue-memcached1-1 | <31 rep 48c0f0cceb29e256758cb526a22b7ef5.lock 768 1691392477 2 51
php-repcached-issue-memcached2-1 | >33 12
php-repcached-issue-memcached2-1 | replication: pop
php-repcached-issue-memcached2-1 | <33 add 48c0f0cceb29e256758cb526a22b7ef5.lock 768 15 1
php-repcached-issue-memcached2-1 | replication: pop
php-repcached-issue-memcached2-1 | >33 NOT_STORED
php-repcached-issue-memcached2-1 | <33 get 48c0f0cceb29e256758cb526a22b7ef5
php-repcached-issue-memcached2-1 | >33 END
php-repcached-issue-memcached1-1 | REP>31 STORED
php-repcached-issue-memcached2-1 | <33 incr 48c0f0cceb29e256758cb526a22b7ef5.lock 1
php-repcached-issue-memcached2-1 | >33 13
php-repcached-issue-memcached2-1 | replication: pop
php-repcached-issue-memcached2-1 | <33 add 48c0f0cceb29e256758cb526a22b7ef5.lock 768 15 1
php-repcached-issue-memcached2-1 | >33 NOT_STORED
php-repcached-issue-memcached2-1 | <33 get 48c0f0cceb29e256758cb526a22b7ef5
php-repcached-issue-memcached2-1 | >33 END
php-repcached-issue-memcached2-1 | replication: pop
php-repcached-issue-memcached1-1 | <31 rep 48c0f0cceb29e256758cb526a22b7ef5.lock 768 1691392477 2 52
php-repcached-issue-memcached1-1 | REP>31 STORED
php-repcached-issue-memcached1-1 | <31 rep 48c0f0cceb29e256758cb526a22b7ef5.lock 768 1691392477 2 53
php-repcached-issue-memcached1-1 | REP>31 STORED
php-repcached-issue-memcached2-1 | <33 incr 48c0f0cceb29e256758cb526a22b7ef5.lock 1
php-repcached-issue-memcached2-1 | >33 14
php-repcached-issue-memcached2-1 | replication: pop
php-repcached-issue-memcached2-1 | <33 add 48c0f0cceb29e256758cb526a22b7ef5.lock 768 15 1
php-repcached-issue-memcached2-1 | >33 NOT_STORED
php-repcached-issue-memcached2-1 | replication: pop
php-repcached-issue-memcached2-1 | <33 get 48c0f0cceb29e256758cb526a22b7ef5
php-repcached-issue-memcached2-1 | >33 END
php-repcached-issue-memcached2-1 | <33 incr 48c0f0cceb29e256758cb526a22b7ef5.lock 1
php-repcached-issue-memcached2-1 | >33 15
php-repcached-issue-memcached2-1 | replication: pop
php-repcached-issue-memcached2-1 | <33 add 48c0f0cceb29e256758cb526a22b7ef5.lock 768 15 1
php-repcached-issue-memcached2-1 | >33 NOT_STORED
php-repcached-issue-memcached2-1 | replication: pop
php-repcached-issue-memcached2-1 | <33 get 48c0f0cceb29e256758cb526a22b7ef5
php-repcached-issue-memcached2-1 | >33 END
php-repcached-issue-memcached1-1 | <31 rep 48c0f0cceb29e256758cb526a22b7ef5.lock 768 1691392477 2 54
php-repcached-issue-memcached1-1 | REP>31 STORED
php-repcached-issue-memcached2-1 | <33 incr 48c0f0cceb29e256758cb526a22b7ef5.lock 1
php-repcached-issue-memcached2-1 | >33 16
php-repcached-issue-memcached2-1 | <33 add 48c0f0cceb29e256758cb526a22b7ef5.lock 768 15 1
php-repcached-issue-memcached1-1 | <31 rep 48c0f0cceb29e256758cb526a22b7ef5.lock 768 1691392477 2 55
php-repcached-issue-memcached1-1 | REP>31 STORED
php-repcached-issue-memcached2-1 | >33 NOT_STORED
php-repcached-issue-memcached2-1 | <33 get 48c0f0cceb29e256758cb526a22b7ef5
php-repcached-issue-memcached2-1 | >33 END
php-repcached-issue-memcached2-1 | replication: pop
php-repcached-issue-memcached2-1 | replication: pop
php-repcached-issue-memcached1-1 | <31 rep 48c0f0cceb29e256758cb526a22b7ef5.lock 768 1691392477 2 56
php-repcached-issue-memcached2-1 | <33 incr 48c0f0cceb29e256758cb526a22b7ef5.lock 1
php-repcached-issue-memcached2-1 | >33 17
php-repcached-issue-memcached2-1 | replication: pop
php-repcached-issue-memcached2-1 | <33 add 48c0f0cceb29e256758cb526a22b7ef5.lock 768 15 1
php-repcached-issue-memcached2-1 | >33 NOT_STORED
php-repcached-issue-memcached2-1 | <33 get 48c0f0cceb29e256758cb526a22b7ef5
php-repcached-issue-memcached2-1 | replication: pop
php-repcached-issue-memcached2-1 | >33 END
php-repcached-issue-memcached1-1 | REP>31 STORED
php-repcached-issue-memcached2-1 | <33 incr 48c0f0cceb29e256758cb526a22b7ef5.lock 1
php-repcached-issue-memcached2-1 | >33 18
php-repcached-issue-memcached2-1 | replication: pop
php-repcached-issue-memcached2-1 | <33 add 48c0f0cceb29e256758cb526a22b7ef5.lock 768 15 1
php-repcached-issue-memcached2-1 | >33 NOT_STORED
php-repcached-issue-memcached2-1 | replication: pop
php-repcached-issue-memcached2-1 | <33 get 48c0f0cceb29e256758cb526a22b7ef5
php-repcached-issue-memcached2-1 | >33 END
php-repcached-issue-memcached1-1 | <31 rep 48c0f0cceb29e256758cb526a22b7ef5.lock 768 1691392477 2 57
php-repcached-issue-memcached1-1 | REP>31 STORED
php-repcached-issue-memcached2-1 | <33 incr 48c0f0cceb29e256758cb526a22b7ef5.lock 1
php-repcached-issue-memcached2-1 | >33 19
php-repcached-issue-memcached2-1 | <33 add 48c0f0cceb29e256758cb526a22b7ef5.lock 768 15 1
php-repcached-issue-memcached2-1 | >33 NOT_STORED
php-repcached-issue-memcached2-1 | <33 get 48c0f0cceb29e256758cb526a22b7ef5
php-repcached-issue-memcached2-1 | >33 END
php-repcached-issue-memcached2-1 | replication: pop
php-repcached-issue-memcached2-1 | replication: pop
php-repcached-issue-memcached1-1 | <31 rep 48c0f0cceb29e256758cb526a22b7ef5.lock 768 1691392477 2 58
php-repcached-issue-memcached1-1 | REP>31 STORED
php-repcached-issue-memcached2-1 | <33 incr 48c0f0cceb29e256758cb526a22b7ef5.lock 1
php-repcached-issue-memcached1-1 | <31 rep 48c0f0cceb29e256758cb526a22b7ef5.lock 768 1691392477 2 59
php-repcached-issue-memcached2-1 | >33 20
php-repcached-issue-memcached2-1 | replication: pop
php-repcached-issue-memcached2-1 | <33 add 48c0f0cceb29e256758cb526a22b7ef5.lock 768 15 1
php-repcached-issue-memcached2-1 | >33 NOT_STORED
php-repcached-issue-memcached2-1 | replication: pop
php-repcached-issue-memcached2-1 | <33 get 48c0f0cceb29e256758cb526a22b7ef5
php-repcached-issue-memcached2-1 | >33 END
php-repcached-issue-memcached1-1 | REP>31 STORED
php-repcached-issue-memcached2-1 | <33 incr 48c0f0cceb29e256758cb526a22b7ef5.lock 1
php-repcached-issue-memcached2-1 | >33 21
php-repcached-issue-memcached2-1 | replication: pop
php-repcached-issue-memcached2-1 | <33 add 48c0f0cceb29e256758cb526a22b7ef5.lock 768 15 1
php-repcached-issue-memcached2-1 | >33 NOT_STORED
php-repcached-issue-memcached2-1 | <33 get 48c0f0cceb29e256758cb526a22b7ef5
php-repcached-issue-memcached2-1 | >33 END
php-repcached-issue-memcached2-1 | replication: pop
php-repcached-issue-memcached1-1 | <31 rep 48c0f0cceb29e256758cb526a22b7ef5.lock 768 1691392477 2 60
php-repcached-issue-memcached1-1 | REP>31 STORED
php-repcached-issue-memcached2-1 | <33 incr 48c0f0cceb29e256758cb526a22b7ef5.lock 1
php-repcached-issue-memcached1-1 | <31 rep 48c0f0cceb29e256758cb526a22b7ef5.lock 768 1691392477 2 61
php-repcached-issue-memcached1-1 | REP>31 STORED
php-repcached-issue-memcached2-1 | >33 22
php-repcached-issue-memcached2-1 | replication: pop
php-repcached-issue-memcached2-1 | <33 add 48c0f0cceb29e256758cb526a22b7ef5.lock 768 15 1
php-repcached-issue-memcached2-1 | >33 NOT_STORED
php-repcached-issue-memcached2-1 | <33 get 48c0f0cceb29e256758cb526a22b7ef5
php-repcached-issue-memcached2-1 | >33 END
php-repcached-issue-memcached2-1 | replication: pop
php-repcached-issue-memcached2-1 | <33 incr 48c0f0cceb29e256758cb526a22b7ef5.lock 1
php-repcached-issue-memcached2-1 | >33 23
php-repcached-issue-memcached2-1 | replication: pop
php-repcached-issue-memcached2-1 | <33 add 48c0f0cceb29e256758cb526a22b7ef5.lock 768 15 1
php-repcached-issue-memcached2-1 | >33 NOT_STORED
php-repcached-issue-memcached2-1 | <33 get 48c0f0cceb29e256758cb526a22b7ef5
php-repcached-issue-memcached2-1 | >33 END
php-repcached-issue-memcached2-1 | replication: pop
php-repcached-issue-memcached1-1 | <31 rep 48c0f0cceb29e256758cb526a22b7ef5.lock 768 1691392477 2 62
php-repcached-issue-memcached1-1 | REP>31 STORED
php-repcached-issue-memcached2-1 | <33 incr 48c0f0cceb29e256758cb526a22b7ef5.lock 1
php-repcached-issue-memcached2-1 | >33 NOT_FOUND
php-repcached-issue-memcached2-1 | <33 add 48c0f0cceb29e256758cb526a22b7ef5.lock 768 15 1
php-repcached-issue-memcached2-1 | >33 STORED
php-repcached-issue-memcached2-1 | <33 get 48c0f0cceb29e256758cb526a22b7ef5
php-repcached-issue-memcached2-1 | >33 END
php-repcached-issue-memcached2-1 | replication: pop
php-repcached-issue-memcached2-1 | replication: pop
php-repcached-issue-memcached1-1 | <31 rep 48c0f0cceb29e256758cb526a22b7ef5.lock 768 1691392492 1 63
php-repcached-issue-memcached1-1 | REP>31 STORED
php-repcached-issue-memcached1-1 | <33 set 48c0f0cceb29e256758cb526a22b7ef5 0 1691393917 0
php-repcached-issue-memcached2-1 | <33 set 48c0f0cceb29e256758cb526a22b7ef5 0 1691393917 0
php-repcached-issue-memcached2-1 | >33 STORED
php-repcached-issue-memcached2-1 | <33 set 48c0f0cceb29e256758cb526a22b7ef5.lock 768 15 1
php-repcached-issue-memcached2-1 | >33 STORED
php-repcached-issue-memcached2-1 | replication: pop
php-repcached-issue-memcached2-1 | replication: pop
php-repcached-issue-memcached2-1 | <26 rep 48c0f0cceb29e256758cb526a22b7ef5 0 1691393917 0 49
php-repcached-issue-memcached2-1 | REP>26 STORED
php-repcached-issue-memcached2-1 | <26 rep 48c0f0cceb29e256758cb526a22b7ef5.lock 768 1691392492 1 50
php-repcached-issue-memcached2-1 | REP>26 STORED
php-repcached-issue-memcached1-1 | >33 STORED
php-repcached-issue-memcached1-1 | <33 set 48c0f0cceb29e256758cb526a22b7ef5.lock 768 15 1
php-repcached-issue-memcached1-1 | replication: pop
php-repcached-issue-memcached1-1 | >33 STORED
php-repcached-issue-memcached1-1 | replication: pop
php-repcached-issue-memcached1-1 | <31 rep 48c0f0cceb29e256758cb526a22b7ef5 0 1691393917 0 64
php-repcached-issue-memcached1-1 | REP>31 STORED
php-repcached-issue-memcached1-1 | <31 rep 48c0f0cceb29e256758cb526a22b7ef5.lock 768 1691392492 1 65
php-repcached-issue-memcached1-1 | REP>31 STORED
php-repcached-issue-memcached1-1 | <33 connection closed.
php-repcached-issue-memcached2-1 | <33 connection closed.
NOT_STORED is returned when "add" is executed due to the replication process of repcached. This does not occur in version 4.0.5.2 (PHP7.4). Is there a good solution?

Docker environment is prepared.
https://github.com/wol-827/php-repcached-issue

(I'm using a translation, so sorry if it's not clear.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant