ವಿತರಿಸಿದ ದೋಷ-ಸಹಿಷ್ಣು LeoFS ವಸ್ತು ಸಂಗ್ರಹಣೆಯ ಸ್ಥಾಪನೆ, S3, NFS ಬಳಸುವ ಕ್ಲೈಂಟ್‌ಗಳೊಂದಿಗೆ ಹೊಂದಿಕೊಳ್ಳುತ್ತದೆ

ಪ್ರಕಾರ ಓಪನ್ನೆಟ್: ಲಿಯೋಎಫ್ಎಸ್ - ವಿತರಿಸಿದ ದೋಷ-ಸಹಿಷ್ಣು ವಸ್ತು ಸಂಗ್ರಹಣೆ ಲಿಯೋಎಫ್ಎಸ್, Amazon S3 API ಮತ್ತು REST-API ಬಳಸುವ ಕ್ಲೈಂಟ್‌ಗಳೊಂದಿಗೆ ಹೊಂದಿಕೊಳ್ಳುತ್ತದೆ ಮತ್ತು NFS ಸರ್ವರ್ ಮೋಡ್ ಅನ್ನು ಸಹ ಬೆಂಬಲಿಸುತ್ತದೆ. ಸಣ್ಣ ಮತ್ತು ದೊಡ್ಡ ಎರಡೂ ವಸ್ತುಗಳನ್ನು ಸಂಗ್ರಹಿಸಲು ಆಪ್ಟಿಮೈಸೇಶನ್‌ಗಳಿವೆ, ಅಂತರ್ನಿರ್ಮಿತ ಹಿಡಿದಿಟ್ಟುಕೊಳ್ಳುವ ಕಾರ್ಯವಿಧಾನವಿದೆ ಮತ್ತು ಡೇಟಾ ಕೇಂದ್ರಗಳ ನಡುವೆ ಸಂಗ್ರಹಣೆಯ ಪುನರಾವರ್ತನೆ ಸಾಧ್ಯ. ಪ್ರಾಜೆಕ್ಟ್‌ನ ಗುರಿಗಳು 99.9999999% ನಕಲುಗಳ ಪುನರಾವರ್ತನೆಯ ಮೂಲಕ XNUMX% ವಿಶ್ವಾಸಾರ್ಹತೆಯನ್ನು ಸಾಧಿಸುವುದು ಮತ್ತು ವೈಫಲ್ಯದ ಒಂದು ಬಿಂದುವನ್ನು ತೆಗೆದುಹಾಕುವುದನ್ನು ಒಳಗೊಂಡಿರುತ್ತದೆ. ಯೋಜನೆಯ ಕೋಡ್ ಅನ್ನು ಎರ್ಲಾಂಗ್‌ನಲ್ಲಿ ಬರೆಯಲಾಗಿದೆ.

LeoFS ಮೂರು ಘಟಕಗಳನ್ನು ಒಳಗೊಂಡಿದೆ:

  • LeoFS ಸಂಗ್ರಹಣೆ — ಆಬ್ಜೆಕ್ಟ್‌ಗಳು ಮತ್ತು ಮೆಟಾಡೇಟಾವನ್ನು ಸೇರಿಸುವ, ಹಿಂಪಡೆಯುವ ಮತ್ತು ಅಳಿಸುವ ಕಾರ್ಯಾಚರಣೆಗಳನ್ನು ನಿರ್ವಹಿಸುತ್ತದೆ, ಪುನರಾವರ್ತನೆ, ಮರುಪಡೆಯುವಿಕೆ ಮತ್ತು ಕ್ಲೈಂಟ್ ವಿನಂತಿಗಳನ್ನು ಸರದಿಯಲ್ಲಿ ಇರಿಸುವ ಜವಾಬ್ದಾರಿಯನ್ನು ಹೊಂದಿದೆ.
  • ಲಿಯೋಎಫ್ಎಸ್ ಗೇಟ್ವೇ — HTTP ವಿನಂತಿಗಳನ್ನು ಒದಗಿಸುತ್ತದೆ ಮತ್ತು REST-API ಅಥವಾ S3-API ಬಳಸಿಕೊಂಡು ಕ್ಲೈಂಟ್‌ಗಳಿಗೆ ಪ್ರತಿಕ್ರಿಯೆಗಳನ್ನು ಮರುನಿರ್ದೇಶಿಸುತ್ತದೆ, ಮೆಮೊರಿ ಮತ್ತು ಡಿಸ್ಕ್‌ನಲ್ಲಿ ಹೆಚ್ಚು ಅಗತ್ಯವಿರುವ ಡೇಟಾವನ್ನು ಸಂಗ್ರಹಿಸುವುದನ್ನು ಖಾತ್ರಿಗೊಳಿಸುತ್ತದೆ.
  • ಲಿಯೋಎಫ್ಎಸ್ ಮ್ಯಾನೇಜರ್ - LeoFS ಗೇಟ್‌ವೇ ಮತ್ತು LeoFS ಶೇಖರಣಾ ನೋಡ್‌ಗಳ ಕಾರ್ಯಾಚರಣೆಯನ್ನು ಮೇಲ್ವಿಚಾರಣೆ ಮಾಡುತ್ತದೆ, ನೋಡ್‌ಗಳ ಸ್ಥಿತಿಯನ್ನು ಮೇಲ್ವಿಚಾರಣೆ ಮಾಡುತ್ತದೆ ಮತ್ತು ಚೆಕ್‌ಸಮ್‌ಗಳನ್ನು ಪರಿಶೀಲಿಸುತ್ತದೆ. ಡೇಟಾ ಸಮಗ್ರತೆ ಮತ್ತು ಹೆಚ್ಚಿನ ಸಂಗ್ರಹಣೆಯ ಲಭ್ಯತೆಯನ್ನು ಖಾತರಿಪಡಿಸುತ್ತದೆ.

ಈ ಪೋಸ್ಟ್‌ನಲ್ಲಿ ನಾವು ಅನ್ಸಿಬಲ್-ಪ್ಲೇಬುಕ್ ಮತ್ತು ಪರೀಕ್ಷೆ S3, NFS ಬಳಸಿಕೊಂಡು Leofs ಅನ್ನು ಸ್ಥಾಪಿಸುತ್ತೇವೆ.

ಅಧಿಕೃತ ಪ್ಲೇಬುಕ್‌ಗಳನ್ನು ಬಳಸಿಕೊಂಡು ನೀವು LeoFS ಅನ್ನು ಸ್ಥಾಪಿಸಲು ಪ್ರಯತ್ನಿಸಿದರೆ, ನೀವು ಹಲವಾರು ದೋಷಗಳನ್ನು ಎದುರಿಸುತ್ತೀರಿ: 1,2. ಈ ತಪ್ಪುಗಳನ್ನು ತಪ್ಪಿಸಲು ಏನು ಮಾಡಬೇಕೆಂದು ನಾನು ಈ ಪೋಸ್ಟ್‌ನಲ್ಲಿ ಬರೆಯುತ್ತೇನೆ.

ನೀವು ಅನ್ಸಿಬಲ್-ಪ್ಲೇಬುಕ್ ಅನ್ನು ಎಲ್ಲಿ ರನ್ ಮಾಡುತ್ತೀರಿ, ನೀವು ನೆಟ್‌ಕ್ಯಾಟ್ ಅನ್ನು ಸ್ಥಾಪಿಸಬೇಕಾಗುತ್ತದೆ.

ದಾಸ್ತಾನು ಉದಾಹರಣೆ

ಉದಾಹರಣೆ ದಾಸ್ತಾನು (hosts.sample ರೆಪೊಸಿಟರಿಯಲ್ಲಿ):

# Please check roles/common/vars/leofs_releases for available versions
[all:vars]
leofs_version=1.4.3
build_temp_path="/tmp/leofs_builder"
build_install_path="/tmp/"
build_branch="master"
source="package"

#[builder]
#172.26.9.177

# nodename of leo_manager_0 and leo_manager_1 are set at group_vars/all
[leo_manager_0]
172.26.9.176

# nodename of leo_manager_0 and leo_manager_1 are set at group_vars/all
[leo_manager_1]
172.26.9.178

[leo_storage]
172.26.9.179 [email protected]
172.26.9.181 [email protected]
172.26.9.182 [email protected]
172.26.9.183 [email protected]

[leo_gateway]
172.26.9.180 [email protected]
172.26.9.184 [email protected]

[leofs_nodes:children]
leo_manager_0
leo_manager_1
leo_gateway
leo_storage

ಸರ್ವರ್ ತಯಾರಿ

Selinux ಅನ್ನು ನಿಷ್ಕ್ರಿಯಗೊಳಿಸಲಾಗುತ್ತಿದೆ. ಸಮುದಾಯವು LeoFS ಗಾಗಿ Selinux ನೀತಿಗಳನ್ನು ರಚಿಸುತ್ತದೆ ಎಂದು ನಾನು ಭಾವಿಸುತ್ತೇನೆ.

    - name: Install libselinux as prerequisite for SELinux Ansible module
      yum:
        name: "{{item}}"
        state: latest
      with_items:
        - libselinux-python
        - libsemanage-python

    - name: Disable SELinux at next reboot
      selinux:
        state: disabled

    - name: Set SELinux in permissive mode until the machine is rebooted
      command: setenforce 0
      ignore_errors: true
      changed_when: false

ಸೆಟ್ಟಿಂಗ್ netcat и redhat-lsb-core. netcat ಗೆ ಅಗತ್ಯವಿದೆ leofs-adm, redhat-lsb-core OS ಆವೃತ್ತಿಯನ್ನು ನಿರ್ಧರಿಸಲು ಅಗತ್ಯವಿದೆ ಇಲ್ಲಿ.

    - name: Install Packages
      yum: name={{ item }} state=present
      with_items:
        - nmap-ncat
        - redhat-lsb-core

ಬಳಕೆದಾರ leofs ಅನ್ನು ರಚಿಸುವುದು ಮತ್ತು ಅದನ್ನು ಚಕ್ರ ಗುಂಪಿಗೆ ಸೇರಿಸುವುದು

    - name: Create user leofs
      group:
        name: leofs
        state: present

    - name: Allow 'wheel' group to have passwordless sudo
      lineinfile:
        dest: /etc/sudoers
        state: present
        regexp: '^%wheel'
        line: '%wheel ALL=(ALL) NOPASSWD: ALL'
        validate: 'visudo -cf %s'

    - name: Add the user 'leofs' to group 'wheel'
      user:
        name: leofs
        groups: wheel
        append: yes

ಎರ್ಲಾಂಗ್ ಅನ್ನು ಸ್ಥಾಪಿಸಲಾಗುತ್ತಿದೆ

    - name: Remote erlang-20.3.8.23-1.el7.x86_64.rpm install with yum
      yum: name=https://github.com/rabbitmq/erlang-rpm/releases/download/v20.3.8.23/erlang-20.3.8.23-1.el7.x86_64.rpm

ಸರಿಪಡಿಸಿದ ಅನ್ಸಿಬಲ್ ಪ್ಲೇಬುಕ್‌ನ ಪೂರ್ಣ ಆವೃತ್ತಿಯನ್ನು ಇಲ್ಲಿ ಕಾಣಬಹುದು: https://github.com/patsevanton/leofs_ansible

ಅನುಸ್ಥಾಪನೆ, ಸಂರಚನೆ, ಉಡಾವಣೆ

ಮುಂದೆ ನಾವು ಬರೆದಂತೆ ನಿರ್ವಹಿಸುತ್ತೇವೆ https://github.com/leo-project/leofs_ansible build_leofs.yml ಇಲ್ಲದೆ

## Install LeoFS
$ ansible-playbook -i hosts install_leofs.yml

## Config LeoFS
$ ansible-playbook -i hosts config_leofs.yml

## Start LeoFS
$ ansible-playbook -i hosts start_leofs.yml

ಪ್ರಾಥಮಿಕ ಲಿಯೋಮ್ಯಾನೇಜರ್‌ನಲ್ಲಿ ಕ್ಲಸ್ಟರ್ ಸ್ಥಿತಿಯನ್ನು ಪರಿಶೀಲಿಸಲಾಗುತ್ತಿದೆ

leofs-adm status

ಪ್ರಾಥಮಿಕ ಮತ್ತು ದ್ವಿತೀಯಕವನ್ನು ಅನ್ಸಿಬಲ್-ಪ್ಲೇಬುಕ್ ಲಾಗ್‌ಗಳಲ್ಲಿ ಕಾಣಬಹುದು

ವಿತರಿಸಿದ ದೋಷ-ಸಹಿಷ್ಣು LeoFS ವಸ್ತು ಸಂಗ್ರಹಣೆಯ ಸ್ಥಾಪನೆ, S3, NFS ಬಳಸುವ ಕ್ಲೈಂಟ್‌ಗಳೊಂದಿಗೆ ಹೊಂದಿಕೊಳ್ಳುತ್ತದೆ

ವಿತರಿಸಿದ ದೋಷ-ಸಹಿಷ್ಣು LeoFS ವಸ್ತು ಸಂಗ್ರಹಣೆಯ ಸ್ಥಾಪನೆ, S3, NFS ಬಳಸುವ ಕ್ಲೈಂಟ್‌ಗಳೊಂದಿಗೆ ಹೊಂದಿಕೊಳ್ಳುತ್ತದೆ

ಔಟ್ಪುಟ್ ಈ ರೀತಿ ಇರುತ್ತದೆ

 [System Confiuration]
-----------------------------------+----------
 Item                              | Value    
-----------------------------------+----------
 Basic/Consistency level
-----------------------------------+----------
                    system version | 1.4.3
                        cluster Id | leofs_1
                             DC Id | dc_1
                    Total replicas | 2
          number of successes of R | 1
          number of successes of W | 1
          number of successes of D | 1
 number of rack-awareness replicas | 0
                         ring size | 2^128
-----------------------------------+----------
 Multi DC replication settings
-----------------------------------+----------
 [mdcr] max number of joinable DCs | 2
 [mdcr] total replicas per a DC    | 1
 [mdcr] number of successes of R   | 1
 [mdcr] number of successes of W   | 1
 [mdcr] number of successes of D   | 1
-----------------------------------+----------
 Manager RING hash
-----------------------------------+----------
                 current ring-hash | a0314afb
                previous ring-hash | a0314afb
-----------------------------------+----------

 [State of Node(s)]
-------+----------------------+--------------+---------+----------------+----------------+----------------------------
 type  |         node         |    state     | rack id |  current ring  |   prev ring    |          updated at         
-------+----------------------+--------------+---------+----------------+----------------+----------------------------
  S    | [email protected]      | running      |         | a0314afb       | a0314afb       | 2019-12-05 10:33:47 +0000
  S    | [email protected]      | running      |         | a0314afb       | a0314afb       | 2019-12-05 10:33:47 +0000
  S    | [email protected]      | running      |         | a0314afb       | a0314afb       | 2019-12-05 10:33:47 +0000
  S    | [email protected]      | attached     |         |                |                | 2019-12-05 10:33:58 +0000
  G    | [email protected]      | running      |         | a0314afb       | a0314afb       | 2019-12-05 10:33:49 +0000
  G    | [email protected]      | running      |         | a0314afb       | a0314afb       | 2019-12-05 10:33:49 +0000
-------+----------------------+--------------+---------+----------------+----------------+----------------------------

ಬಳಕೆದಾರರನ್ನು ರಚಿಸಲಾಗುತ್ತಿದೆ

ಲೆಫ್ಸ್ ಬಳಕೆದಾರರನ್ನು ರಚಿಸಿ:

leofs-adm create-user leofs leofs

  access-key-id: 9c2615f32e81e6a1caf5
  secret-access-key: 8aaaa35c1ad78a2cbfa1a6cd49ba8aaeb3ba39eb

ಬಳಕೆದಾರರ ಪಟ್ಟಿ:

leofs-adm get-users
user_id     | role_id | access_key_id          | created_at                
------------+---------+------------------------+---------------------------
_test_leofs | 9       | 05236                  | 2019-12-02 06:56:49 +0000
leofs       | 1       | 9c2615f32e81e6a1caf5   | 2019-12-02 10:43:29 +0000

ಬಕೆಟ್ ರಚಿಸಿ

ಒಂದು ಬಕೆಟ್ ಮಾಡಿದೆ

leofs-adm add-bucket leofs 9c2615f32e81e6a1caf5
OK

ಬಕೆಟ್ ಪಟ್ಟಿ:

 leofs-adm get-buckets
cluster id   | bucket   | owner  | permissions      | created at                
-------------+----------+--------+------------------+---------------------------
leofs_1      | leofs    | leofs  | Me(full_control) | 2019-12-02 10:44:02 +0000

s3cmd ಅನ್ನು ಕಾನ್ಫಿಗರ್ ಮಾಡಲಾಗುತ್ತಿದೆ

ಕ್ಷೇತ್ರದಲ್ಲಿ HTTP Proxy server name ಗೇಟ್‌ವೇ ಸರ್ವರ್ IP ಅನ್ನು ಸೂಚಿಸಿ

s3cmd --configure 

Enter new values or accept defaults in brackets with Enter.
Refer to user manual for detailed description of all options.

Access key and Secret key are your identifiers for Amazon S3. Leave them empty for using the env variables.
Access Key [9c2615f32e81e6a1caf5]: 
Secret Key [8aaaa35c1ad78a2cbfa1a6cd49ba8aaeb3ba39eb]: 
Default Region [US]: 

Use "s3.amazonaws.com" for S3 Endpoint and not modify it to the target Amazon S3.
S3 Endpoint [s3.amazonaws.com]: 

Use "%(bucket)s.s3.amazonaws.com" to the target Amazon S3. "%(bucket)s" and "%(location)s" vars can be used
if the target S3 system supports dns based buckets.
DNS-style bucket+hostname:port template for accessing a bucket [%(bucket)s.s3.amazonaws.com]: leofs

Encryption password is used to protect your files from reading
by unauthorized persons while in transfer to S3
Encryption password: 
Path to GPG program [/usr/bin/gpg]: 

When using secure HTTPS protocol all communication with Amazon S3
servers is protected from 3rd party eavesdropping. This method is
slower than plain HTTP, and can only be proxied with Python 2.7 or newer
Use HTTPS protocol [No]: 

On some networks all internet access must go through a HTTP proxy.
Try setting it here if you can't connect to S3 directly
HTTP Proxy server name [172.26.9.180]: 
HTTP Proxy server port [8080]: 

New settings:
  Access Key: 9c2615f32e81e6a1caf5
  Secret Key: 8aaaa35c1ad78a2cbfa1a6cd49ba8aaeb3ba39eb
  Default Region: US
  S3 Endpoint: s3.amazonaws.com
  DNS-style bucket+hostname:port template for accessing a bucket: leofs
  Encryption password: 
  Path to GPG program: /usr/bin/gpg
  Use HTTPS protocol: False
  HTTP Proxy server name: 172.26.9.180
  HTTP Proxy server port: 8080

Test access with supplied credentials? [Y/n] Y
Please wait, attempting to list all buckets...
Success. Your access key and secret key worked fine :-)

Now verifying that encryption works...
Not configured. Never mind.

Save settings? [y/N] y
Configuration saved to '/home/user/.s3cfg'

ನೀವು ದೋಷವನ್ನು ಪಡೆದರೆ ದೋಷ: S3 ದೋಷ: 403 (AccessDenied): ಪ್ರವೇಶವನ್ನು ನಿರಾಕರಿಸಲಾಗಿದೆ:

s3cmd put test.py s3://leofs/
upload: 'test.py' -> 's3://leofs/test.py'  [1 of 1]
 382 of 382   100% in    0s     3.40 kB/s  done
ERROR: S3 error: 403 (AccessDenied): Access Denied

ನಂತರ ನೀವು s3cmd ಸಂರಚನೆಯಲ್ಲಿ signature_v2 ಅನ್ನು True ಗೆ ಬದಲಾಯಿಸಬೇಕಾಗುತ್ತದೆ. ಇದರಲ್ಲಿ ವಿವರಗಳು ಸಮಸ್ಯೆ.

signature_v2 ತಪ್ಪಾಗಿದ್ದರೆ, ಈ ರೀತಿಯ ದೋಷವಿರುತ್ತದೆ:

WARNING: Retrying failed request: /?delimiter=%2F (getaddrinfo() argument 2 must be integer or string)
WARNING: Waiting 3 sec...
WARNING: Retrying failed request: /?delimiter=%2F (getaddrinfo() argument 2 must be integer or string)
WARNING: Waiting 6 sec...
ERROR: Test failed: Request failed for: /?delimiter=%2F

ಲೋಡ್ ಪರೀಕ್ಷೆ

1GB ಫೈಲ್ ಅನ್ನು ರಚಿಸಿ

fallocate -l 1GB 1gb

ಅದನ್ನು Leofs ಗೆ ಅಪ್‌ಲೋಡ್ ಮಾಡಿ

time s3cmd put 1gb s3://leofs/
real    0m19.099s
user    0m7.855s
sys 0m1.620s

Статистика

1 ನೋಡ್‌ಗೆ leofs-adm du:

leofs-adm du [email protected]
 active number of objects: 156
  total number of objects: 156
   active size of objects: 602954495
    total size of objects: 602954495
     ratio of active size: 100.0%
    last compaction start: ____-__-__ __:__:__
      last compaction end: ____-__-__ __:__:__

ತೀರ್ಮಾನವು ಹೆಚ್ಚು ಮಾಹಿತಿಯುಕ್ತವಾಗಿಲ್ಲ ಎಂದು ನಾವು ನೋಡುತ್ತೇವೆ.

ಈ ಫೈಲ್ ಎಲ್ಲಿದೆ ಎಂದು ನೋಡೋಣ.
leofs-adm ಅಂದರೆ leofs/1gb

leofs-adm whereis leofs/1gb
-------+----------------------+--------------------------------------+------------+--------------+----------------+----------------+----------------+----------------------------
 del?  |         node         |             ring address             |    size    |   checksum   |  has children  |  total chunks  |     clock      |             when            
-------+----------------------+--------------------------------------+------------+--------------+----------------+----------------+----------------+----------------------------
       | [email protected]      | 657a9f3a3db822a7f1f5050925b26270     |    976563K |   a4634eea55 | true           |             64 | 598f2aa976a4f  | 2019-12-05 10:48:15 +0000
       | [email protected]      | 657a9f3a3db822a7f1f5050925b26270     |    976563K |   a4634eea55 | true           |             64 | 598f2aa976a4f  | 2019-12-05 10:48:15 +0000

NFS ಅನ್ನು ಸಕ್ರಿಯಗೊಳಿಸಿ

ನಾವು ಲಿಯೋ ಗೇಟ್‌ವೇ 172.26.9.184 ಸರ್ವರ್‌ನಲ್ಲಿ NFS ಅನ್ನು ಸಕ್ರಿಯಗೊಳಿಸುತ್ತೇವೆ.

ಸರ್ವರ್ ಮತ್ತು ಕ್ಲೈಂಟ್‌ನಲ್ಲಿ nfs-utils ಅನ್ನು ಸ್ಥಾಪಿಸಿ

sudo yum install nfs-utils

ಸೂಚನೆಗಳ ಪ್ರಕಾರ, ನಾವು ಕಾನ್ಫಿಗರೇಶನ್ ಫೈಲ್ ಅನ್ನು ಸರಿಪಡಿಸುತ್ತೇವೆ /usr/local/leofs/current/leo_gateway/etc/leo_gateway.conf

protocol = nfs

ಸರ್ವರ್ 172.26.9.184 ನಲ್ಲಿ rpcbind ಮತ್ತು leofs-ಗೇಟ್‌ವೇ ಅನ್ನು ರನ್ ಮಾಡಿ

sudo service rpcbind start
sudo service leofs-gateway restart

leo_manager ಚಾಲನೆಯಲ್ಲಿರುವ ಸರ್ವರ್‌ನಲ್ಲಿ, NFS ಗಾಗಿ ಬಕೆಟ್ ಅನ್ನು ರಚಿಸಿ ಮತ್ತು NFS ಗೆ ಸಂಪರ್ಕಿಸಲು ಕೀಲಿಯನ್ನು ರಚಿಸಿ

leofs-adm add-bucket test 05236
leofs-adm gen-nfs-mnt-key test 05236 ip-адрес-nfs-клиента

NFS ಗೆ ಸಂಪರ್ಕಿಸಲಾಗುತ್ತಿದೆ

sudo mkdir /mnt/leofs
## for Linux - "sudo mount -t nfs -o nolock <host>:/<bucket>/<token> <dir>"
sudo mount -t nfs -o nolock ip-адрес-nfs-сервера-там-где-у-вас-установлен-gateway:/bucket/access_key_id/ключ-полученный-от-gen-nfs-mnt-key /mnt/leofs
sudo mount -t nfs -o nolock 172.26.9.184:/test/05236/bb5034f0c740148a346ed663ca0cf5157efb439f /mnt/leofs

NFS ಕ್ಲೈಂಟ್ ಮೂಲಕ ಡಿಸ್ಕ್ ಜಾಗವನ್ನು ವೀಕ್ಷಿಸಿ

ಡಿಸ್ಕ್ ಸ್ಪೇಸ್, ​​ಪ್ರತಿ ಶೇಖರಣಾ ನೋಡ್ 40GB ಡಿಸ್ಕ್ ಅನ್ನು ಹೊಂದಿದೆ (3 ರನ್ನಿಂಗ್ ನೋಡ್‌ಗಳು, 1 ಲಗತ್ತಿಸಲಾದ ನೋಡ್):

df -hP
Filesystem                                                         Size  Used Avail Use% Mounted on
172.26.9.184:/test/05236/e7298032e78749149dd83a1e366afb328811c95b   60G  3.6G   57G   6% /mnt/leofs

6 ಸ್ಟೋರೇಜ್ ನೋಡ್‌ಗಳೊಂದಿಗೆ LeoFS ನ ಸ್ಥಾಪನೆ.

ದಾಸ್ತಾನು (ಬಿಲ್ಡರ್ ಇಲ್ಲದೆ):

# Please check roles/common/vars/leofs_releases for available versions
[all:vars]
leofs_version=1.4.3
build_temp_path="/tmp/leofs_builder"
build_install_path="/tmp/"
build_branch="master"
source="package"

# nodename of leo_manager_0 and leo_manager_1 are set at group_vars/all
[leo_manager_0]
172.26.9.177

# nodename of leo_manager_0 and leo_manager_1 are set at group_vars/all
[leo_manager_1]
172.26.9.176

[leo_storage]
172.26.9.178 [email protected]
172.26.9.179 [email protected]
172.26.9.181 [email protected]
172.26.9.182 [email protected]
172.26.9.183 [email protected]
172.26.9.185 [email protected]

[leo_gateway]
172.26.9.180 [email protected]
172.26.9.184 [email protected]

[leofs_nodes:children]
leo_manager_0
leo_manager_1
leo_gateway
leo_storage

ಔಟ್ಪುಟ್ leofs-adm ಸ್ಥಿತಿ

ಔಟ್ಪುಟ್ leofs-adm ಸ್ಥಿತಿ

 [System Confiuration]
-----------------------------------+----------
 Item                              | Value    
-----------------------------------+----------
 Basic/Consistency level
-----------------------------------+----------
                    system version | 1.4.3
                        cluster Id | leofs_1
                             DC Id | dc_1
                    Total replicas | 2
          number of successes of R | 1
          number of successes of W | 1
          number of successes of D | 1
 number of rack-awareness replicas | 0
                         ring size | 2^128
-----------------------------------+----------
 Multi DC replication settings
-----------------------------------+----------
 [mdcr] max number of joinable DCs | 2
 [mdcr] total replicas per a DC    | 1
 [mdcr] number of successes of R   | 1
 [mdcr] number of successes of W   | 1
 [mdcr] number of successes of D   | 1
-----------------------------------+----------
 Manager RING hash
-----------------------------------+----------
                 current ring-hash | d8ff465e
                previous ring-hash | d8ff465e
-----------------------------------+----------

 [State of Node(s)]
-------+----------------------+--------------+---------+----------------+----------------+----------------------------
 type  |         node         |    state     | rack id |  current ring  |   prev ring    |          updated at         
-------+----------------------+--------------+---------+----------------+----------------+----------------------------
  S    | [email protected]      | running      |         | d8ff465e       | d8ff465e       | 2019-12-06 05:18:29 +0000
  S    | [email protected]      | running      |         | d8ff465e       | d8ff465e       | 2019-12-06 05:18:29 +0000
  S    | [email protected]      | running      |         | d8ff465e       | d8ff465e       | 2019-12-06 05:18:30 +0000
  S    | [email protected]      | running      |         | d8ff465e       | d8ff465e       | 2019-12-06 05:18:29 +0000
  S    | [email protected]      | running      |         | d8ff465e       | d8ff465e       | 2019-12-06 05:18:29 +0000
  S    | [email protected]      | running      |         | d8ff465e       | d8ff465e       | 2019-12-06 05:18:29 +0000
  G    | [email protected]      | running      |         | d8ff465e       | d8ff465e       | 2019-12-06 05:18:31 +0000
  G    | [email protected]      | running      |         | d8ff465e       | d8ff465e       | 2019-12-06 05:18:31 +0000
-------+----------------------+--------------+---------+----------------+----------------+----------------------------

ಡಿಸ್ಕ್ ಸ್ಪೇಸ್, ​​ಪ್ರತಿ ಶೇಖರಣಾ ನೋಡ್ 40GB ಡಿಸ್ಕ್ (6 ರನ್ನಿಂಗ್ ನೋಡ್‌ಗಳು) ಹೊಂದಿದೆ ಎಂದು ಗಣನೆಗೆ ತೆಗೆದುಕೊಳ್ಳುತ್ತದೆ:

df -hP
Filesystem                                                         Size  Used Avail Use% Mounted on
172.26.9.184:/test/05236/e7298032e78749149dd83a1e366afb328811c95b  120G  3.6G  117G   3% /mnt/leofs

5 ಶೇಖರಣಾ ನೋಡ್‌ಗಳನ್ನು ಬಳಸಿದರೆ

[leo_storage]
172.26.9.178 [email protected]
172.26.9.179 [email protected]
172.26.9.181 [email protected]
172.26.9.182 [email protected]
172.26.9.183 [email protected]

df -hP
172.26.9.184:/test/05236/e7298032e78749149dd83a1e366afb328811c95b  100G  3.0G   97G   3% /mnt/leofs

ದಾಖಲೆಗಳು

ದಾಖಲೆಗಳು ಡೈರೆಕ್ಟರಿಗಳಲ್ಲಿವೆ /usr/local/leofs/current/*/log

ಟೆಲಿಗ್ರಾಮ್ ಚಾನಲ್: SDS ಮತ್ತು ಕ್ಲಸ್ಟರ್ FS

ಮೂಲ: www.habr.com

ಕಾಮೆಂಟ್ ಅನ್ನು ಸೇರಿಸಿ