All Projects → Tianny → Incepiton Mysql

Tianny / Incepiton Mysql

Licence: mit
🍭A web platform designed for mysql inception

Programming Languages

python
139335 projects - #7 most used programming language
python3
1442 projects

Projects that are alternatives of or similar to Incepiton Mysql

Enferno
A Python framework based on Flask microframework, with batteries included, and best practices in mind.
Stars: ✭ 385 (+327.78%)
Mutual labels:  mysql, flask, celery
Autoops
linux资产管理,cmdb,django, webssh,运维管理平台,数据库操作平台 本项目已停止开发!因长时间未对代码进行维护,可能会造成项目在不同环境上无法部署、运行BUG等问题,请知晓!项目仅供参考!
Stars: ✭ 340 (+277.78%)
Mutual labels:  mysql, inception, celery
Gather Deployment
Gathers scalable tensorflow and infrastructure deployment
Stars: ✭ 326 (+262.22%)
Mutual labels:  flask, inception, celery
Botvid 19
Messenger Bot that scrapes for COVID-19 data and periodically updates subscribers via Facebook Messages. Created using Python/Flask, MYSQL, HTML, Heroku
Stars: ✭ 34 (-62.22%)
Mutual labels:  mysql, flask
Full Stack
Full stack, modern web application generator. Using Flask, PostgreSQL DB, Docker, Swagger, automatic HTTPS and more.
Stars: ✭ 451 (+401.11%)
Mutual labels:  flask, celery
Flack
Companion code to my PyCon 2016 "Flask at Scale" tutorial session.
Stars: ✭ 458 (+408.89%)
Mutual labels:  flask, celery
Kamifaka
一款基于VUE3.0的开源免费的卡密发卡系统,高效、稳定可靠。
Stars: ✭ 253 (+181.11%)
Mutual labels:  mysql, flask
Web develop
《Python Web开发实战》书中源码
Stars: ✭ 1,146 (+1173.33%)
Mutual labels:  flask, celery
Python Devops
gathers Python stack for DevOps, these are usually my basic templates use for my implementations, so, feel free to use it and evolve it! Everything is Docker!
Stars: ✭ 61 (-32.22%)
Mutual labels:  flask, celery
Microsoftbotframework
Microsoft Bot Framework is a wrapper for the Microsoft Bot API by Microsoft
Stars: ✭ 68 (-24.44%)
Mutual labels:  flask, celery
See
基于开源组件(Inception & SQLAdvisor & SOAR)的SQL审核&SQL优化的Web平台
Stars: ✭ 1,187 (+1218.89%)
Mutual labels:  mysql, inception
Docker Tutorial
Code for a creating a docker app with Flask and MySQL tutorial
Stars: ✭ 73 (-18.89%)
Mutual labels:  mysql, flask
Shorty
🔗 A URL shortening service built using Flask and MySQL
Stars: ✭ 78 (-13.33%)
Mutual labels:  mysql, flask
Bibi
An e-commerce fullstack solution for Flask 出口电商全栈解决方案
Stars: ✭ 914 (+915.56%)
Mutual labels:  flask, celery
Archer
基于inception的自动化SQL操作平台,支持SQL执行、LDAP认证、发邮件、OSC、SQL查询、SQL优化建议、权限管理等功能,支持docker镜像
Stars: ✭ 1,239 (+1276.67%)
Mutual labels:  mysql, inception
Docker Examples
There are many like it, but this one is mine.
Stars: ✭ 66 (-26.67%)
Mutual labels:  mysql, flask
Docker Flask Celery Redis
Docker-Compose template for orchestrating a Flask app with a Celery queue using Redis
Stars: ✭ 165 (+83.33%)
Mutual labels:  flask, celery
Dailyfresh
Django-天天生鲜电商学习项目
Stars: ✭ 127 (+41.11%)
Mutual labels:  mysql, celery
Bugsnag Python
Official bugsnag error monitoring and error reporting for django, flask, tornado and other python apps.
Stars: ✭ 69 (-23.33%)
Mutual labels:  flask, celery
Flask Log Request Id
Flask extension to track and log Request-ID headers produced by PaaS like Heroku and load balancers like Amazon ELB
Stars: ✭ 81 (-10%)
Mutual labels:  flask, celery

Incepiton Mysql

🍎 A web platform designed for MySQL Inception.

⚓️ 基于Inception的SQL自动化审核平台。

Travis Travis Travis Travis Travis Travis Travis

功能一览

登陆

登陆流程分两种,一种对接企业内部的OpenLDAP,实现账号统一管理。另一种是直接走数据库。两种方式的选择通过config.py中的LDAP_ON_OFF控制

权限管理

分三种角色。Dev,开发人;Audit,审核人;Admin,管理员

Dev功能

  • 数据库实例查看、申请、取消
  • 工单查看、申请、取消、修改
  • 工单状态、数目可视化展示

Audit功能

  • 数据库实例查看、分配、撤销
  • 工单查看、取消、驳回、执行、定时执行
  • 支持 pt-online-schema-change 工具,大表可进行 online DDL操作
  • SQL执行进度实时获取,中途可停止,需手动清除触发器和临时表

Admin功能

  • 数据库实例添加、修改、删除
  • 用户添加、修改、删除

邮件通知

重要功能介绍

支持分表操作

分表操作

自动审核

发起SQL上线,由Inception自动审核,自动审核成功后,提交至Audit。

自动审核结果

审核人操作

审核人操作

SQL执行进度实时获取

只有走pt-osc修改大表时,才会显示执行进度。具体多大的表走pt-osc,可以通过 Inception 来配置,具体参考 Inception文档进度获取

定时任务

定时任务可设置、取消 定时任务

工单图表

图表

回滚操作

回滚

资源状态说明

  • 0:Success,成功
  • 1:Pending,未处理
  • 2:Dev Cancelled,开发人取消
  • 3:Audit Cancelled,审核人取消

工单状态说明

  • 0:Success,成功
  • 1:Pending, 带人工审核
  • 2:Check Failed,自动审核失败
  • 3:Executing,执行中
  • 4:Error,执行异常
  • 5:Dev Cancelled,开发人取消
  • 6:Audit Cancelled,审核人取消
  • 7:Audit Rejected,审核人驳回
  • 8:Timer,定时任务

部分开发说明

  1. Inception编译安装,请使用 bison 2.6 以下版本

  2. 请注意 Python3 和 Python2 编码不同

  3. 对接OpenLDAP,使用了flask-simpleLDAP扩展,为了兼容 python3,有一处源码需要修改,__init.__py 第153行,按如下修改 ldap

  4. 为了兼容 Inception 返回的信息,pyMysql 需要修改两处源码。

  • python3使用的pyMysql模块里并未兼容inception返回的server信息,因此需要添加 2

  • python3的pyMysql模块会向inception发送SHOW WARNINGS语句,导致inception返回一个"Must start as begin statement"错误。 1

  1. Celery 最新版本即4.1.0 存在时区设置BUG,具体详见TimeZone Bug,具体就是设置了 Asia/Shanghai,ETA 执行的时间比正常东八区时间又多了8个小时,不过我已经在代码里处理过了。官方会在下个版本修复。

使用说明

  • 创建表结构
python manage.py shell
db.create_all()
  • 创建用户

如果是走OpenLDAP的话,不需要手动创建用户,会自动同步到数据库中。

不走OpenLDAP,用户需要创建。角色的分配需要admin用户登陆之后修改。

创建方式一: 适用于普通用户,直接可以从登陆页面的注册链接进行注册

创建方式二: admin用户和普通用户,以创建test用户为例

python manage.py create_user --name test --password test --email test@examle.com
  • 启动 Celery

Celery 需要使用 broker 和 backend, 我这里都采用了 redis。具体 Celery 的使用 查看Celery文档

    celery worker -A celery_runner --logleve=info --statedb=/tmp/worker.state

注意上面的 --statedb=/tmp/worker.state,撤销的定时任务均被 Celery 保存在里面,所以最好不要丢失。

  • 部署

Flask部署方式请参考部署

  • 本地测试
python manage.py runserver --threaded

不再维护

该项目已不再维护。

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].