Build a kafka cluster environment in a docker container
Kafka cluster management and status saving are implemented through zookeeper. Therefore, you must first set up a zookeeper cluster.
Zookeeper cluster Construction
I. software environment:
The zookeeper cluster requires more than half of the nodes to survive for external services. Therefore, the number of servers should be 2 * N + 1. Here, three nodes are used to build the zookeeper cluster.
1. All three linux servers are created using doc
Set up a stream replication cluster for PostgreSQL. This is the old version of the Host: PPAS1PPAS21 install PPAS9.0 [root @ ppas1 ~] # Setenforce0 [root @ ppas1 ~
Set up a stream replication cluster for PostgreSQL. This is the old version of the Host: PPAS1 PPAS2 1 install PPAS 9.0 [root @ ppas1 ~] # Setenforce 0 [root @ ppas1 ~
Set up a stream replication cluster for PostgreSQL.
Host:
PPAS1 PPAS2
1Install PPAS 9.0[Root @ ppas1 ~] # Setenforce 0[Root @ ppas1 ~] # Ppasmeta-9.0.4.14-linux-x6
The first part: overview。。 Part II: System Preparation1 Operating system CentOS 6.xIp:2 Installing OpenSSL Yum Install-y OpenSSL3 Installing the JDKDownload JDK http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html from official websiteDownload here is jdk1.8 upload to CentOS6, extract to/opt/jtools/java/directoryConfiguring Environment variablesVim ~/.bash_profileexport java_home=/op
The control file is a very important data structure for the database and is usually necessary for data recovery.
Oracle provides two ways to back up control files:
1. Generate scripts that can reconstruct control files2. Backup binary control files
Let's take a look at how to get the script to rebuild the control file.
Oracle provides the following command:
ALTER DATABASE backup Controlfile to trace;
actual operation:
[Oracle@standby tools]$ Sqlplus "/As SYSD
Tags: style blog http io ar color OS sp forReference: http://blog.csdn.net/zklth/article/details/7522677First, the Environment preparation:Note: All nodes need to close their walls/etc/init.d/iptables Status #查看防火墙状态/etc/init.d/iptables Stop #关闭防火墙1. Software Download:Ftp://mirror.switch.ch/mirror/mysql/Downloads/MySQL-Cluster-7.1/Select mysql-cluster-gpl-7.1.19.tar.gz Download2. Hardware requires five physical nodes (the virtual machine is not tried)3. Software Installation: Do the following on
11.2.0.3.7 PSU patch upgrade Description: This is a new host that has not yet been created. If the database already exists, you need to perform the database refreshing operation! Environment: SUSE Linux Enterprise Server 11 sp1 (x86_64) requires that the database be upgraded from 11.2.0.3.0 to 11.2.0.3.7 PSU (latest), Patch: unzip with oracle user unzipping: oracle @ tb-dinggou3 :~ /Softs> unzip p16619892_112030_Linux-x86-64.zip oracle @ tb-dinggou3 :~ /Softs> ls16619892 p16619892_112030_Linux-x
Install MariaDB and MySQL
MariaDB can be used to replace enhanced MySQL versions, but MariaDB can also be installed when MySQL is installed. (This makes sense. For example, you want to migrate data from one database/application to another database/application .)
The following describes how to install MariaDB when MySQL is installed.
Download the latest binary compilation package tar.gz (currently mariadb-5.5.24-linux-x86_64.tar.gz) and decompress it to your custom directory. This document assume
that can be created by each real user ID.
/proc/sys/fs/inotify/max_user_watches
Default Value: 8192
Specifies the maximum number of watches associated with each inotify instance, that is, the maximum number of directories that each inotify instance can monitor. If the number of monitored files is large, you need to increase the value according to the actual situation.
Note:
1.
Max_queued_events is the maximum length of the queue managed by Inotify. The more frequently the file system change
The size of the file hard disk deleted in linux remains unchanged. recently, the game server's hard disk is full. What's strange is that du/opt/is only 25 GB, but df is? N case study? Capacity in use available %? Mongod? /Dev/sda5195g23g1631613... Info nbsp; | linux delete File hard disk size not changed solved recently game server hard disk full. What's strange is that du/opt/is only 25 GB, but df is? N c
The size of the file hard disk deleted in linux remains unchanged. Recently, the game server's hard disk is full. The strange thing is that du/opt/is only 25 GB, but df is always case. The system capacity has been used. % available nodes/dev/sda5 195g 23G 163G 13%/ /dev/sda2 68G 65G 0 100%/opt/dev/sda1 99 M 12 M 82 M 13%/boottmpfs 16G 0 16G 0%/dev/shm do not understand why run du -- max-depth = 1-h in the/
"Command to view the built was profile":/opt/ibm/websphere/appserver/bin/manageprofiles.sh-listprofiles"Command to delete the was profile":Programme one:1. Locate the profileregistry.xml, and in the directory/opt/ibm/websphere/appserver/properties, remove the profile that you want to delete.2. Delete profilename.sh in directory/opt/ibm/websphere/appserver/propert
swap space when Oracle is installed, especially when building a library, it will cause the system to react for a few minutes.Check swap space:Cat/proc/swapsIncrease swap space:
DD If=/dev/zero Of=tmpswap bs=1k count=300000chmod TmpswapMkswap TmpswapSwapon TmpswapProblems with the "binutils" RPM version7.1 and 7.2 with the Binutils RPM package so that 9i universial Installer can not run up, and there is no newer version to solve this problem, you can have two options:Download the following versi
volume is relatively largeCannot implement table-and user-level data recoverySecond, cold backup
Case: First, you should find out the database data files, log files, control files, the location of the temporary files in the relevant view.Note: Do not direct the oradata under the CP on the line, because the production library files are usually distributed in different disks, different places, so in the view to get the real path1. View information about the instance and databaseSQL>Select f
Oracle modifies the Name of TableSpaceBefore Oracle10g, the name of tablespace cannot be modified at will. It can only be dropped and re-built. However, after 10g, oracle added the modification function, except for the system and sysaux tablespaces, other tablespaces can be renamed. We will record this feature today:An example of renaming TableSpace is as follows:SQL> create tablespace wxq_tbs datafile '/opt/oracle/product/10.2.0/oradata/wangxiaoqi/wx
a database, the system will not respond for several minutes. check the swap space: CAT/proc/SWAPs increase the swap space:
Dd If =/dev/Zero of = tmpswap BS = 1 k count = 300000Chmod 600 tmpswapMkswap tmpswapSwapon tmpswap"Binutils" rpm version ProblemsThe binutils RPM package with 7.1 and 7.2 makes 9i universial installer unable to run, and there is no updated version to solve this problem. You can have two options:Download the RPM package of the following version and "downgrade" The binuti
Kafka Cluster management, state saving is realized through zookeeper, so we should build zookeeper cluster first
Zookeeper Cluster setup
First, the SOFTWARE environment:
The zookeeper cluster requires more than half of the node to survive to be externally serviced, so the number of servers should be 2*n+1, where 3 node is used to build the zookeeper cluster.
1.3 Linux servers are created using the Docker container, and the IP address isnodea:172.17.0.10
nodeb:172.17.0.11
nodec:172.17.0.12
2. Zo
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.