Tuesday, May 26, 2015

Ubuntu 14.04 - Mysql Galera Cluster for Wordpress

This cluster has 2 nodes run in multi master mode Installing cluster sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db sudo add-apt-repository 'deb http://mirror3.layerjet.com/mariadb/repo/5.5/ubuntu trusty main' sudo apt-get update -y ; sudo apt-get install -y galera mariadb-galera-server rsync Configuring cluster On each of the host in the cluster add this configuration vi /etc/mysql/conf.d/galera.cnf [mysqld] #mysql...

Thursday, May 21, 2015

Tại sao đuổi học?

Ngay từ thuở còn cắp sách đến trường tôi chứng kiến không biết bao nhiêu bạn bè của mình bị đuổi học vì những lý do như đánh nhau, quay cóp, uống bia rượu, đua xe... nói chung là những lý do mà người ta quy cho là phạm tội hay lỗi trầm trọng mà qua đó sẽ dẫn đến việc cho thôi học có thời hạn hay vô thời hạn. Mà việc đuổi học này không phải chỉ riêng ở Việt Nam mà nước Tây nước Tàu nào cũng có. Tôi...

Ubuntu 14.04 - GlusterFS for Wordpress

Here's my setup:  Client -> Varnish cache -> 2 x Worpdress -> Memcached -> 2 x MariaDB I need to sync Wordpress folder on both Machine, just have a look on NFS, CEPH, GlusterFS and I go with GlusterFS sudo apt-get -y install glusterfs-server If you don't have a on premise DNS server, we can add the server name in to hosts files 192.20.1.1    srvr-phpnode1.mydomain.vn  ...

Ubuntu 14.04 - Memcached server for Wordpress

First thing first: memcache vs memcached According to http://blackbe.lt/php-memcache-vs-memcached/ PHP has two separate module implementations wrapping the memcached (as in memcache daemon) server. The memcache module utilizes this daemon directly, whereas the memcached module wraps the libMemcached client library and contains some added bonuses. Memcached module will be faster than memcache...