[转]Architecting Big Data Applications: A Beginners Guide

https://oreillymedia.github.io/Learning-Path-Architecting-Big-Data-Applications-A-Beginners-Guide-Examples/

Advertisements

High Availability

ha-diagram-animated

Or

ha


References

Digital Ocean

https://www.digitalocean.com/community/tutorials/how-to-create-a-high-availability-setup-with-heartbeat-and-floating-ips-on-ubuntu-14-04
https://www.digitalocean.com/community/tutorials/how-to-create-a-high-availability-setup-with-pacemaker-corosync-and-floating-ips-on-centos-7
https://www.digitalocean.com/community/tutorials/how-to-create-a-high-availability-setup-with-corosync-pacemaker-and-floating-ips-on-ubuntu-14-04
https://www.digitalocean.com/community/tutorials/how-to-create-a-high-availability-haproxy-setup-with-corosync-pacemaker-and-floating-ips-on-ubuntu-14-04

Data Replication

https://www.digitalocean.com/community/tutorials/how-to-install-and-use-postgresql-on-centos-7
https://www.digitalocean.com/community/tutorials/how-to-install-mongodb-on-centos-7
https://www.digitalocean.com/community/tutorials/how-to-set-up-master-slave-replication-on-postgresql-on-an-ubuntu-12-04-vps
https://www.digitalocean.com/community/tutorials/how-to-implement-replication-sets-in-mongodb-on-an-ubuntu-vps

Pacemaker, Corosync and PostgreSQL | MongoDB

https://wiki.clusterlabs.org/wiki/PgSQL_Replicated_Cluster
http://linux-ha.org/doc/man-pages/re-ra-pgsql.html
https://dalibo.github.io/PAF/Quick_Start-CentOS-7.html
https://github.com/ChenHuajun/pha4pgsql
https://docs.mongodb.com/manual/tutorial/deploy-replica-set/
https://docs.mongodb.com/mongoid/master/#ruby-mongoid-tutorial

HowtoForge

https://www.howtoforge.com/high-availability-load-balancer-haproxy-heartbeat-debian-etch
https://www.howtoforge.com/how-to-set-up-an-active-passive-postgresql-cluster-with-pacemaker-corosync-and-drbd-centos-5.5
https://www.howtoforge.com/tutorial/how-to-set-up-nginx-high-availability-with-pacemaker-corosync-and-crmsh-on-ubuntu-1604/
https://www.howtoforge.com/tutorial/how-to-setup-haproxy-as-load-balancer-for-nginx-on-centos-7/

Tecmint

https://www.tecmint.com/add-new-disk-to-an-existing-linux/

Learn IT Guide

http://www.learnitguide.net/2016/07/how-to-install-and-configure-drbd-on-linux.html

IT’zGeek

http://www.itzgeek.com/how-tos/linux/centos-how-tos/configure-high-avaliablity-cluster-on-centos-7-rhel-7.html

UpCloud

https://www.upcloud.com/support/how-to-configure-floating-ip-on-centos/

Blog

http://jensd.be/156/linux/building-a-high-available-failover-cluster-with-pacemaker-corosync-pcs

Rancher

http://rancher.com/docs/rancher/v1.6/en/installing-rancher/installing-server/#multi-nodes
http://rancher.com/docs/rancher/v1.6/en/cattle/adding-load-balancers/

What should be notice when using docker private registry?

If use official docker private registry from docker hub: registry:2. Install it on a registry server. There is a trouble to connect it from client.

Run it on client host:

$ docker pull ubuntu
$ docker tag ubuntu <IP_ADDRESS>:5000/ubuntu
$ docker push <IP_ADDRESS>:5000/ubuntu

Can’t access.

Solution

Create file

/etc/docker/daemon.json

Add this

{ "insecure-registries":["myregistry.example.com:5000"] }

Restart docker service

# service docker restart

Official issue

https://github.com/docker/distribution/issues/1874


Rancher Way

# Edit the config file "/etc/default/docker"
$ sudo vi /etc/default/docker
# Add this line at the end of file. If there are already options, make sure you append it to the current option list.
$ DOCKER_OPTS="$DOCKER_OPTS --insecure-registry=${DOMAIN}:${PORT}"
# Restart the docker service
$ sudo service docker restart

http://rancher.com/docs/rancher/v1.6/en/environments/registries/#insecure-registries