This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ mon1: 192.168.10.11 (cài ceph-admin) | |
+ mon2: 192.168.10.12 | |
+ mon3: 192.168.10.13 | |
+ osd1: 192.168.10.21 | |
+ osd2: 192.168.10.22 | |
+ osd3: 192.168.10.23 | |
Bài viết giới thiệu tổng quan về Nginx và cách thiết lập cân bằng tải trong hệ thống máy chủ sử dụng Nginx. Trước khi đi vào tìm hiểu vẫn đề này, chúng ta sẽ nói qua chút về Proxy.
Proxy là một Internet server làm nhiệm vụ chuyển tiếp thông tin và kiểm soát tạo sự an toàn cho việc truy cập Internet của các máy khách. Có 2 loại Proxy là Forward proxy và Reverse proxy.
Là khái niệm miêu tả sự kiện proxy nhận dữ liệu từ server và gửi cho client thay vì client nhận dữ liệu trực tiếp từ server. Nếu không chỉ rõ thì khi nói đến proxy có thể hiểu là forward proxy.
Cụ thể, ta có 3 máy tính kết nối tới internet.
- Tạo file log-openstack.sh với nội dung dưới
#!/bin/bash
# rapid CLI oneliner log inspection inside all log files
# Lookig for keywords "fail", "error", "unable", "warning".
for i in $(ls /var/log/*/*.log); do echo "=========="; echo $i; echo "========="; tail $i| egrep -i $1; done
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[local|localrc]] | |
RECLONE=True | |
GIT_BASE=http://git.openstack.org | |
HORIZON_BRANCH=stable/pike | |
KEYSTONE_BRANCH=stable/pike | |
SWIFT_BRANCH=stable/pike | |
#----------------------------- | |
# Common congigurations | |
#----------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[local|localrc]] | |
RECLONE=True | |
GIT_BASE=${GIT_BASE:-https://git.openstack.org} | |
HORIZON_BRANCH=stable/pike | |
KEYSTONE_BRANCH=stable/pike | |
SWIFT_BRANCH=stable/pike | |
SWIFT3_BRANCH=1.12 | |
#----------------------------- | |
# Common congigurations | |
#----------------------------- |
OlderNewer