Skip to content

通过ansible自动部署starrocks, 一键启停集群

Notifications You must be signed in to change notification settings

howlyu/henry.starrocks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Henry.Starrocks

Install and manage StarRocks automatically

Prepare

  1. Installed the JAVA on all FE
  2. Installed the Mysql client on the master of all FE
  3. Set up SSH without passwords
  4. Download it from https://www.starrocks.com/zh-CN/download/community to directory (henry.starrocks/files)
  5. Add hosts in /etc/ansible/hosts e.g:
[dorisdb_all]
192.168.30.128
192.168.30.129
192.168.30.130

[dorisdb_frontends]
192.168.30.128
192.168.30.129

[dorisdb_master]
192.168.30.128

[dorisdb_follower]
192.168.30.129

[dorisdb_backends]
192.168.30.128
192.168.30.129
192.168.30.130

[dorisdb_brokers]
192.168.30.128
192.168.30.129
192.168.30.130

Requirements

See meta/main.yml

Role Variables

See defaults/main.yml

Dependencies

See meta/main.yml

Example Playbook

- hosts: dorisdb_all
  roles:
    - henry.starrocks

Reinstall

  1. Clean the files
$ ansible dorisdb_all -m shell -a "sudo rm -rf /home/starrocks/.local"
$ ansible dorisdb_all -m shell -a "sudo rm -rf /data/starrocks/meta"
$ ansible dorisdb_all -m shell -a "sudo rm -rf /data/starrocks/storage"
  1. Execute the Playbook

License

MIT

Author Information

Henry

About

通过ansible自动部署starrocks, 一键启停集群

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages