Discover Centmin Mod today
Register Now

Memcached Memcached Server 1.4.26 Released

Discussion in 'Other Centmin Mod Installed software' started by eva2000, Jun 22, 2016.

  1. eva2000

    eva2000 Administrator Staff Member

    55,237
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,833
    Local Time:
    6:40 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Memcached 1.4.26 server has been released ReleaseNotes1426 · memcached/memcached Wiki · GitHub


     
  2. eva2000

    eva2000 Administrator Staff Member

    55,237
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,833
    Local Time:
    6:40 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+

    Memcached Server 1.4.26 Updated



    Updated both Centmin Mod 123.08stable and 123.09beta01 builds to default to Memcached server 1.4.26 release. Once you update your local server Centmin Mod branch code via centmin.sh menu option 23 outlined below. You will need to exit centmin.sh and re-run centmin.sh again and run centmin.sh menu option 10 to update Memcached server to 1.4.26.

    Centmin Mod script will also auto update your memcached /etc/init.d/memcached file with new Memcached 1.4.26 -o modern option if it detects Memcached 1.4.26 version running. As such you will need to exit centmin.sh after menu option 10 run and re-run centmin.sh one more time to get centmin.sh to auto update /etc/init.d/memcached.

    The centmin.sh will auto patch /etc/init.d/memcached even if you do this last step later or skip it whenever the next time you run centmin.sh and it detects Memcached 1.4.26 running and the new option is not in place.

    To update your Centmin Mod builds follow instructions at centminmod.com/upgrade.html and respective version threads below:
    Memcached 1.4.26
    Code (Text):
    echo stats | nc 127.0.0.1 11211
    STAT pid 20349
    STAT uptime 23
    STAT time 1466523090
    STAT version 1.4.26
    STAT libevent 2.0.22-stable
    STAT pointer_size 64
    STAT rusage_user 0.019124
    STAT rusage_system 0.020595
    STAT curr_connections 5
    STAT total_connections 7
    STAT rejected_connections 0
    STAT connection_structures 6
    STAT reserved_fds 20
    STAT cmd_get 0
    STAT cmd_set 0
    STAT cmd_flush 0
    STAT cmd_touch 0
    STAT get_hits 0
    STAT get_misses 0
    STAT get_expired 0
    STAT delete_misses 0
    STAT delete_hits 0
    STAT incr_misses 0
    STAT incr_hits 0
    STAT decr_misses 0
    STAT decr_hits 0
    STAT cas_misses 0
    STAT cas_hits 0
    STAT cas_badval 0
    STAT touch_hits 0
    STAT touch_misses 0
    STAT auth_cmds 0
    STAT auth_errors 0
    STAT bytes_read 12
    STAT bytes_written 1713
    STAT limit_maxbytes 8388608
    STAT accepting_conns 1
    STAT listen_disabled_num 0
    STAT time_in_listen_disabled_us 0
    STAT threads 4
    STAT conn_yields 0
    STAT hash_power_level 16
    STAT hash_bytes 524288
    STAT hash_is_expanding 0
    STAT slab_reassign_rescues 0
    STAT slab_reassign_evictions_nomem 0
    STAT slab_reassign_inline_reclaim 0
    STAT slab_reassign_busy_items 0
    STAT slab_reassign_running 0
    STAT slabs_moved 0
    STAT lru_crawler_running 0
    STAT lru_crawler_starts 0
    STAT lru_maintainer_juggles 208
    STAT malloc_fails 0
    STAT log_worker_dropped 0
    STAT log_worker_written 0
    STAT log_watcher_skipped 0
    STAT log_watcher_sent 0
    STAT bytes 0
    STAT curr_items 0
    STAT total_items 0
    STAT slab_global_page_pool 0
    STAT expired_unfetched 0
    STAT evicted_unfetched 0
    STAT evictions 0
    STAT reclaimed 0
    STAT crawler_reclaimed 0
    STAT crawler_items_checked 0
    STAT lrutail_reflocked 0
    STAT moves_to_cold 0
    STAT moves_to_warm 0
    STAT moves_within_lru 0
    STAT direct_reclaims 0
    END
    
     
  3. rdan

    rdan Well-Known Member

    5,450
    1,410
    113
    May 25, 2014
    Ratings:
    +2,204
    Local Time:
    4:40 PM
    Mainline
    10.2
     
  4. eva2000

    eva2000 Administrator Staff Member

    55,237
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,833
    Local Time:
    6:40 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  5. rdan

    rdan Well-Known Member

    5,450
    1,410
    113
    May 25, 2014
    Ratings:
    +2,204
    Local Time:
    4:40 PM
    Mainline
    10.2
    No errors now :).
     
  6. eva2000

    eva2000 Administrator Staff Member

    55,237
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,833
    Local Time:
    6:40 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    ran into bug on fresh 123.09beta01 install
    Code (Text):
    Compiling memcached...
    /svr-setup/libevent-release-2.0.22-stable
    cd /svr-setup
    inc/memcached_install.inc: line 211: cd: /svr-setup/memcached-1.4.26: No such file or directory
    inc/memcached_install.inc: line 215: ./configure: No such file or directory
    make: *** No targets specified and no makefile found.  Stop.
    make: *** No rule to make target `install'.  Stop.
    cp: cannot stat ‘/svr-setup/memcached-1.4.26/scripts/memcached-tool’: No such file or directory
    Compiled memcached...
    Failed to kill unit memcached.service: Unit memcached.service is not loaded.
    service memcached stop
    Redirecting to /bin/systemctl stop  memcached.service
    Failed to stop memcached.service: Unit memcached.service not loaded.
    service memcached start
    Redirecting to /bin/systemctl start  memcached.service
    Failed to start memcached.service: Unit memcached.service failed to load: No such file or directory.
    Compiling PHP memcache extension...
    /svr-setup
    cd /svr-setup
    inc/memcached_install.inc: line 270: cd: /svr-setup/memcache-3.0.8: No such file or directory
    Cannot find config.m4.
    Make sure that you run '/usr/local/bin/phpize' in the top level source directory of the module
    
    inc/memcached_install.inc: line 275: ./configure: No such file or directory
    make: *** No targets specified and no makefile found.  Stop.
    make: *** No rule to make target `install'.  Stop.


    seems memcached-1.4.26.tar.gz was never extracted after download due to bundling with downloads/svr-setup.zip skipping the routine to download and extract
    Code (Text):
    ls -lahrt /svr-setup/ | grep memcached
    -rw-r--r--   1 root  root    69K May 31  2015 memcached-2.2.0.tgz
    -rw-r--r--   1 root  root  1016K Jun 20  2015 libmemcached-1.0.18.tar.gz
    -rw-r--r--   1 root  root   352K Nov 23  2015 memcached-1.4.25.tar.gz
    -rw-r--r--   1 root  root    13K May 19 03:48 lua-resty-memcached_v0.14.tar.gz
    -rw-r--r--   1 root  root   1.6M Jun 21 14:59 memcached-1.4.26.tar.gz


    edit: looks like bundled memcached is corrupted
    Code (Text):
    tar xvzf memcached-1.4.26.tar.gz
    
    gzip: stdin: not in gzip format
    tar: Child returned status 1
    tar: Error is not recoverable: exiting no


    redownloaded the memcached-1.4.26.tar.gz for inclusion in downloads/svr-setup.zip to fix it for new initial 123.09beta01 installs only. No problems with 123.08stable as i have yet to update downloads/svr-setup.zip with 1.4.26 tarball so centmin.sh just downloads it fresh from memcached.org official site anyway

    edit: updated 123.09beta01 with additional fallback checks to see if memcached related routine in centmin.sh menu option 10 and initial install properly extracted the relevant tarballs. If not, automatically delete the existing tarball from /svr-setup and redownload it and extract it again :)
     
    Last edited: Jun 22, 2016
  7. tjk

    tjk Member

    76
    16
    8
    Jun 27, 2015
    Ratings:
    +27
    Local Time:
    4:40 AM
    No update to the php module correct, just the server binary?
     
  8. eva2000

    eva2000 Administrator Staff Member

    55,237
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,833
    Local Time:
    6:40 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    yup.. though centmin.sh menu option 10 does update memcached sever and recompile memcache/memcached existing versions all at once to make sure everything is on same page
     
  9. tjk

    tjk Member

    76
    16
    8
    Jun 27, 2015
    Ratings:
    +27
    Local Time:
    4:40 AM
    @eva2000 or @Xon have you guys benched redis vs memcached for xenforo and ipb?
     
  10. eva2000

    eva2000 Administrator Staff Member

    55,237
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,833
    Local Time:
    6:40 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    pretty close !
     
  11. eva2000

    eva2000 Administrator Staff Member

    55,237
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,833
    Local Time:
    6:40 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    found the culprit

    ah problem is official site memcached.org version of download is not 100% valid see below screenshot the one at 1600KB is memcached.org downloaded one and below is one i redid a tar + gzip on

    upload_2016-6-22_10-1-7.png

    IIRC, this is not the first time memcached.org has served up invalid tarball

    latest 123.09beta01 has added detection for such and redownloads from local centminmod.com mirror if detected as invalid Beta Branch - fallback checks if memcached routine tarballs extracted properly in 123.09beta01 | Centmin Mod Community
     
  12. tjk

    tjk Member

    76
    16
    8
    Jun 27, 2015
    Ratings:
    +27
    Local Time:
    4:40 AM
    So I have memcached 1.4.26 running, but are these the latest?

    Code (Text):
    memcached support => enabled
    Version => 3.0.0b1
    libmemcached version => 1.0.16
    

    You have 1.0.18 in your srv-setup, but are compiling against 1.0.16, or am I missing a config option somewhere?
     
  13. eva2000

    eva2000 Administrator Staff Member

    55,237
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,833
    Local Time:
    6:40 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Centmin Mod switched to remi yum rrpo 1.0.16 just to speed up install times was hoping remi version would get updated eventually
     
  14. tjk

    tjk Member

    76
    16
    8
    Jun 27, 2015
    Ratings:
    +27
    Local Time:
    4:40 AM
    Ahh, ok :)
     
  15. eva2000

    eva2000 Administrator Staff Member

    55,237
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,833
    Local Time:
    6:40 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    FYI, centmin.sh has a variable to control this as well
    Code (Text):
    LIBMEMCACHED_YUM='y'        # switch to YUM install instead of source compile

    set in persistent config /etc/centminmod/custom_config.inc can override the default ='y' enabled value as
    Code (Text):
    LIBMEMCACHED_YUM='n'        # switch to YUM install instead of source compile
     
  16. tjk

    tjk Member

    76
    16
    8
    Jun 27, 2015
    Ratings:
    +27
    Local Time:
    4:40 AM
    So put this in /etc/centminmod/custom_config.inc and option 10 to recompile memcached, is that all that is required?
     
  17. tjk

    tjk Member

    76
    16
    8
    Jun 27, 2015
    Ratings:
    +27
    Local Time:
    4:40 AM
    Code (Text):
    Version 3.0.0b1
    libmemcached version 1.0.18 
    
     
  18. eva2000

    eva2000 Administrator Staff Member

    55,237
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,833
    Local Time:
    6:40 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    yup as you found out :)
     
  19. tjk

    tjk Member

    76
    16
    8
    Jun 27, 2015
    Ratings:
    +27
    Local Time:
    4:40 AM
    Thanks @eva2000, is there documentation of the variables in centmin.sh that we can override in custom_config.inc?

    Or are all the variables you define in centmin.sh changeable in custom_config.inc?
     
  20. eva2000

    eva2000 Administrator Staff Member

    55,237
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,833
    Local Time:
    6:40 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+