GithubHelp home page GithubHelp logo

hyndaniel / sirius Goto Github PK

View Code? Open in Web Editor NEW

This project forked from baifendian/sirius

0.0 2.0 0.0 53.85 MB

Cluster dashboard for datacenter clusters

Python 35.16% Shell 1.41% Perl 0.01% CSS 11.95% JavaScript 51.33% HTML 0.07% Smarty 0.06%

sirius's Introduction

Sirius是什么

Sirius是由百分点科技开发的一套云中心服务管理dashboard。

QQ讨论群:378093490 Sirius

概览

目前支持已经管理的服务统计功能:

云服务

目前包含HDFS云和CODIS云服务的管理

HDFS云

目前支持HDFS文件系统的增加, 删除, 恢复, 分享, 上传, 下载, 统计等功能:

CODIS云

目前支持codis信息, 主机信息:

codis信息

主机信息

云容器

k8s相关监控

离线计算任务

k8s使用说明

用户管理

支持对用户的增加, 删除功能:

如何部署

普通环境部署

(1) 代码拷贝

git clone https://github.com/baifendian/Sirius.git

(2) 创建Sirius隔离环境: virtualenv

[root@bjlg-24p100-40-xtjc06 opt]# pip install virtualenv   #安装 virtualenv 环境
[root@bjlg-24p100-40-xtjc06 opt]# virtualenv  sirius-pyenv --no-site-packages  #创建属于sirius的独立python环境
[root@bjlg-24p100-40-xtjc06 sirius-pyenv]# source bin/activate # 激活环境

(3) 安装Sirius python依赖包

pip install -r requirements.txt

(4) 配置Sirius

修改 Aries.yaml文件

SHARE_PROXY_BASE_URI: "http://172.24.3.64:10012"
REST_BASE_URI: "172.24.3.64:10012"

DATABASES:
  default:
    ENGINE: django.db.backends.mysql
    NAME: aries
    HOST: 172.24.3.64
    PORT: 3306
    USER: root
    PASSWORD: baifendian
  kd_agent_bdms:
    ENGINE: django.db.backends.mysql # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
    NAME: bdms_web10010        # Or path to database file if using sqlite3.
    USER: bdms                       # Not used with sqlite3.
    PASSWORD: bdms                  # Not used with sqlite3.
    HOST: 172.24.100.40             # Set to empty string for localhost. Not used with sqlite3.
    PORT: 3306                       # Set to empty string for default. Not used with sqlite3.

AUTH_LDAP:
  SERVER_URI: 'ldap://192.168.49.241:389'
  USER_DN_TEMPLATE: 'uid=%(user)s,ou=mrbs,dc=baifendian,dc=com'
  BIND_AS_AUTHENTICATING_USER: True
  CACHE_GROUPS: True
  GROUP_CACHE_TIMEOUT: 3600
  USER_ATTR_MAP:
    username: "givenName"
    password: "password"

AMBARI:
  AMBARI_URL: "http://172.24.3.64:8080/api/v1/clusters/hlg_ambari/"
  HDFS_URL: "http://172.24.3.156:50070/webhdfs/v1/"
  HADOOP_CLIENT: "hlg3p64-lupan"
  AMBARI_USER: "admin"
  AMBARI_PASSWORD: "admin"


K8S:
  K8S_IP: '172.24.3.150'
  K8S_PORT: 8080
  INFLUXDB_IP: 'k8sinfluxapi.bfdcloud.com'
  INFLUXDB_PORT: 80
  INFLUXDB_DATABASE: 'k8s'

BDMS:
  IP: '172.24.100.40'
  PORT: '10001'
  USERNAME: 'aiping.liang'
  PASSWORD: 'aiping.liang'


WEBHDFS:
  HOSTS:
    - 172.24.3.155:50070
    - 172.24.3.156:50070
  PORT: 50070
  PATH: "/webhdfs/v1"
  USER: "hadoop"
  TIMEOUT: 10
  MAX_TRIES: 2
  RETRY_DELAY: 3

CODIS:
  INDEX_LINE: 1
  ZK_ADDR: '172.24.3.64:2181'
  HOST_INFO:
    - 0
    - 172.24.3.64
    - root
    -
    - 0
    - a
    - 0
  MEMORY_MAX: 10
  PENTSDB_URL: "http://172.24.4.33:4242"
  SSH_PKEY: '/root/.ssh/id_rsa'
  SSH_KNOWN_HOSTS: '/root/.ssh/known_hosts'

OPENSTACK:
  IP_KEYSTONE: "192.168.190.11"
  PORT_KEYSTONE: 5000
  IP_NOVA: "192.168.190.11"
  PORT_NOVA: 8774
  IP_CINDER:  "192.168.190.11"
  PORT_CINDER: 8776

(5) 启动Sirius

  sh sbin/Aries.sh start

(6) 停止Sirius

  sh sbin/Aries.sh stop

(7) 登录

127.0.0.1:10086

用户名, 密码为ldap的用户名和密码

k8s集群的部署

提示: 由于目前sirius的docker image放在 docker.baifendian.com 私服中.

(1) 代码拷贝并修改配置文件

git clone https://github.com/baifendian/Sirius.git

(2) 下载kubectl客户端

(3) 配置kubectl客户端

$ kubectl config set-cluster default-cluster --server=https://${MASTER_HOST} --certificate-authority=${CA_CERT}
$ kubectl config set-credentials default-admin --certificate-authority=${CA_CERT} --client-key=${ADMIN_KEY} --client-certificate=${ADMIN_CERT}
$ kubectl config set-context default-system --cluster=default-cluster --user=default-admin --namespace=${NAMESPACE}
$ kubectl config use-context default-system

(4) 部署sirius在k8s集群中

$ cd $SIRIUS_HOME/docker-k8s/k8s_config  #进入k8s配置文件目录
$ kubectl create -f sirius-svc.yaml
$ kubectl create -f sirius-rc.yaml
$ kubectl create -f sirius-ingress.yaml

(5) 登录

sirius.bfdcloud.com

用户名, 密码为ldap的用户名和密码

sirius's People

Contributors

lupan2015 avatar lsglsf avatar hyndaniel avatar qqzxingchen avatar sjx323 avatar abigbigbird avatar linuxwind avatar haiiii76 avatar zd1990 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.