Category - 安装部署

2019-11-13 09:26:30    3    0    0

An Apache Ignite cluster can be easily deployed in and maintained by Kubernetes which is an open-source system for automating deployment, scaling, and management of containerized applications.

First, you need to choose how you would like to use Ignite:

  • If it will be used in the pure in-memory mode or as a caching layer on top of a 3rd party database (RDBMS, NoSQL) then refer to the Stateless Deployment guide.
  • If Ignite will be deployed as a memory-centric database with Ignite persistence enabled then refer to the Stateful Deployment documentation.

Prerequisities

Makes sure that you've done the following:

  • Deployed a Kubernetes cluster in the desired environment.
  • Configured RBAC Authorization
  • Deployed Ignite Service

Configured RBAC Authorization

It's recommended to set up RBAC for your Ignite deployments to have fine-grained control of your deployments and to avoid any security-related issues.

vi rbac.yaml

  1. apiVe
2019-09-27 05:31:27    8    0    0

Installation

Install kubeless

Installation is made of three steps:

  • Download the kubeless CLI from the release page.
  • Create a kubeless namespace (used by default)
  • Then use one of the YAML manifests found in the release page to deploy kubeless. It will create a functions Custom Resource Definition and launch a controller.

    Download the kubeless CLI

    wget https://github.com/kubeless/kubeless/releases/download/v1.0.4/kubeless_linux-amd64.zip
    cd bundles/kubeless_linux-amd64
    cp kubeless /usr/local/bin

    Create a kubeless namespace

    kubectl create ns kubeless

    export RELEASE=

2019-05-06 06:51:53    88    0    0

Deployment

precondition

disable firewall

  1. systemctl stop firewalld
  2. systemctl disable firewalld

disable swap

  1. swapoff -a

config hostname ensure local hostname reachable

  1. vi /etc/hosts
  2. 139.162.127.39 node1
  3. 139.162.121.213 node2
  4. 139.162.97.24 node3
  5. 139.162.127.39 apiserver.example.com

Install docker

  1. # Install Docker from CentOS/RHEL repository:
  2. yum install -y docker
  3. ----------------------------
  4. # or install Docker CE 18.06 from Docker's CentOS repositories:
  5. ## Install prerequisites.
  6. yum install yum-utils device-mapper-persistent-data lvm2
  7. ## Add docker repository.
  8. yum-config-manager \
  9. --add-repo \
  10. https://download.docker.com/linux/centos/docker-ce.repo
  11. ## Install docker.
  12. yum update && yum install docker-ce-18.06.1.ce
  13. ## Create /etc/docker directory.
  14. mkdir /etc/docker
  15. mkdir /docker
  16. # Setup daemon.
  17. cat > /etc/docker/daemon.json <<EOF
  18. {
  19. "log-driver": "json-file",
  20. "log-opts": {
  21. "max-size": "100m"
  22. },
  23. "storage-opts": [
  24. "ov
2019-10-18 02:58:50    4    0    0

Typical Uses

  • Mashup'ing and processing outputs of various Nginx upstream outputs (proxy, drizzle, postgres, redis, memcached, and etc) in Lua,
  • doing arbitrarily complex access control and security checks in Lua before requests actually reach the upstream backends,
  • manipulating response headers in an arbitrary way (by Lua)
  • fetching backend information from external storage backends (like redis, memcached, mysql, postgresql) and use that information - to choose which upstream backend to access on-the-fly,
  • coding up arbitrarily complex web applications in a content handler using synchronous but still non-blocking access to the - database backends and other storage,
  • doing very complex URL dispatch in Lua at rewrite phase,
  • using Lua to implement advanced caching mechanism for Nginx's subrequests and arbitrary locations.

The possibiliti

2019-05-06 06:51:53    42    0    0

PREFLIGHT CHECKLIST

The ceph-deploy tool operates out of a directory on an admin node. Any host with network connectivity and a modern python environment and ssh (such as Linux) should work.

CEPH-DEPLOY SETUP

register the target machine with subscription-manager, verify your subscriptions, and enable the “Extras” repository for package dependencies. For example:

  1. yum install subscription-manager -y
  2. sudo subscription-manager repos --enable=rhel-7-server-extras-rpms

Install and enable the Extra Packages for Enterprise Linux (EPEL) repository:

  1. sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

Add the Ceph repository to your yum configuration file at /etc/yum.repos.d/ceph.repo with the following command. Replace {ceph-stable-release} with a stable Ceph release (e.g., luminous.) For example:

  1. cat << EOM > /etc/yum.repos.d/ceph.repo
  2. [ceph-noarch]
  3. name=Ceph noarch packages
  4. baseurl=https:
2019-05-06 06:51:53    1176    0    0

Install PostgreSQL

Install from repository

Install the repository RPM

  1. yum install https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/pgdg-centos10-10-1.noarch.rpm

Install the client packages:

  1. yum install postgresql10

Optionally install the server packages:

  1. yum install postgresql10-server

Optionally initialize the database and enable automatic start:

  1. /usr/pgsql-10/bin/postgresql-10-setup initdb
  2. systemctl enable postgresql-10
  3. systemctl start postgresql-10
  4. su - postgres
  5. psql
  6. \password postgres
  7. xxxpgxxx

Install from source

  1. wget https://ftp.postgresql.org/pub/source/v10.0/postgresql-10.0.tar.gz
  2. tar zxvf postgresql-10.0.tar.gz
  3. cd postgresql-10.0
  4. export PYTHON=/usr/bin/python3
  5. ./configure --prefix=/usr/local/postgres10 --with-python --with-openssl --with-libxml --with-ldap --with-libxslt --enable-thread-safety
  6. make
  7. make install
  8. mkdir /home/pgdata/pg10/pgdata
  9. ./initdb -D /home/pgdata/pg10/pgdata
  10. psql
  11. \passwo
2019-08-22 03:56:54    5    0    0

Installation

download

download package from

  1. wget https://nchc.dl.sourceforge.net/project/symmetricds/symmetricds/symmetricds-3.10/symmetric-server-3.10.3.zip

Creating

Configuration

Once SymmetricDS has been installed, we will need to populate the database with the configuration and sym tables. To do this, execute the following steps:

Node Properties

create node properties file in enginnes folder. Each properties file in the engines directory represents a SymmetricDS node.

for pg.properties

  1. #
  2. # Licensed to JumpMind Inc under one or more contributor
  3. # license agreements. See the NOTICE file distributed
  4. # with this work for additional information regarding
  5. # copyright ownership. JumpMind Inc licenses this file
  6. # to you under the GNU General Public License, version 3.0 (GPLv3)
  7. # (the "License"); you may not use this file except in compliance
  8. # with the License.
  9. #
  10. # You should have received a copy of the GNU General Pu
2019-06-17 12:09:20    1    0    0

Download Binary

  1. wget https://cdn.mysql.com//Downloads/MySQL-5.7/mysql-5.7.26-el7-x86_64.tar.gz
  2. tar zxvf mysql-5.7.26-el7-x86_64.tar.gz

Init Database

  1. mysql_install_db --basedir=/usr/local/mysql --datadir=/data/mysql
  2. mysqld --initialize --basedir=/usr/local/mysql --datadir=/data/mysql --user=pgdata

title

Configuration

default config file

  1. mysqld --verbose --help |grep -A 1 'Default options'

configure mysql

  1. vi /etc/my.cnf
  2. [mysqld]
  3. basedir=/usr/local/mysql
  4. datadir=/data/mysql
  5. port=20769
  6. user=pgdata
  7. socket=/data/mysql/mysql.sock
  8. # Disabling symbolic-links is recommended to prevent assorted security risks
  9. symbolic-links=0
  10. # Settings user and group are ignored when systemd is used.
  11. # If you need to run mysqld under a different user or group,
  12. # customize your systemd unit file for mariadb according to the
  13. # instructions in http://fedoraproject.org/wiki/Systemd
  14. [mysqld_safe]
  15. log-error=/data/mysql/mariadb.log
  16. pid-file=/data/mysql/mariadb.pid
  17. #
  18. #
2019-05-06 06:51:53    38    0    0

Requirement

  1. swapoff -a

configure proxy

  1. #install ss client
  2. yum install python-setuptools && easy_install pip
  3. pip install shadowsocks
  4. #configuration
  5. vi /etc/shadowsocks.json
  6. {
  7. "server":"xxx.com",
  8. "server_port":xxxx,
  9. "local_port":1080,
  10. "password":"xxx",
  11. "timeout":600,
  12. "method":"aes-256-cfb"
  13. }
  14. #start ss client
  15. sslocal -c /etc/shadowsocks.json -d start

install polipo convert ssproxy to httpproxy

  1. git clone https://github.com/jech/polipo.git
  2. cd polipo
  3. make all
  4. make install

configure polipo

  1. vi /etc/polipo.cfg
  2. socksParentProxy = "127.0.0.1:1080"
  3. socksProxyType = socks5
  4. logFile = /var/log/polipo
  5. logLevel = 99
  6. logSyslog = true

start polipo

  1. nohup polipo -c /etc/polipo.cfg &

Install docker

  1. # Install Docker from CentOS/RHEL repository:
  2. yum install -y docker
  3. ----------------------------
  4. # or install Docker CE 18.06 from Docker's CentOS repositories:
  5. ## Install prerequisites.
  6. yum install yum-utils device-mapper-persistent-data lvm2
  7. ## Add docker repository
2019-05-06 06:51:53    87    0    0

Rook is an open source cloud-native storage orchestrator, providing the platform, framework, and support for a diverse set of storage solutions to natively integrate with cloud-native environments.

Rook turns storage software into self-managing, self-scaling, and self-healing storage services. It does this by automating deployment, bootstrapping, configuration, provisioning, scaling, upgrading, migration, disaster recovery, monitoring, and resource management. Rook uses the facilities provided by the underlying cloud-native container management, scheduling and orchestration platform to perform its duties.

This guide will walk you through the basic setup of a Ceph cluster and enable you to consume block, object, and file storage from other pods running in your cluster.

Kubernetes v1.8 or higher is supported by Rook.

TL;DR -> (Too Long, Donot Read)

Deployment rook ceph

fetch source

  1. git clone https://github.com/rook/ro
1/7