English / 中文
WeCube is an open source, one-stop tool for architecture management and IT operation, which aims to simplify the IT management of distributed architecture. Its features can be easily extended by plugins. Release Note
if you want to get better experience, please set up your private environment refer to: WeCube experience manaul
During the implementation of distributed architecture, core banking systems are built in WeBank. Comparing this to traditional monolithic architecture, there are quite a few different pain points, e.g. increasing number of servers, complicated deployment process, difficulties in service tracing and problem diagnosis due to complex systems and long invocation chains.
In the process of finding the solutions for these pain points, we have come up with a set of methodology and best practices for IT management in such scenarios and also developed necessary supporting tools. WeCube is the result of extracting the methodology and best practices form WeBank's internal tools, which is then packaged into an integrated out-of-box solution for IT management.
WeCube's design concept basically matches the lifecycle of IT system management and can be elaborated as "6 aspects with 1 core".
-
1st aspect: "Workbench", it is an ITSM-like workbench that can aggregates all manual tasks so that their contents, importance and priorities are all clear at first glance.
-
2nd aspect: "Expectation", it is to plan, to design, to describe the expectations with models and specifications. By using standard and formal design language together with graphic visualizations, we try to make expectations on distributed architecture accurately and clearly.
-
3rd aspect: "Execution", it is to execute tasks in automated and standardized way so that expectations become realities without introducing errors or deviations caused by people in this process.
-
4th aspect: "Watching", it is to uncover differences between realities and expectations by defining all-round metrics which can reflect the varying runtime situation, then consistently collecting and keeping track of the information.
-
5th aspect: "Wisdom", it is to add intelligence into WeCube by means of data modeling and machine learning, so that policies can be developed to deal with errors and deviations, such as policies for trouble shooting, cause analysis, resource scaling.
-
6th aspect: "Equilibration", it is to ensure that realities are conforming to design expectations by applying policies and making consistent adjustments, so that running systems are stable in a dynamic way.
-
the core: "Workflow Engine", it is to coordinate tasks and improve collaborations in those 6 aspects, so that manual intervention is reduced and team efficency is increased.
WeCube is composed of the core framework and plugins for feature exetnsions.
The core framework is developed with Java/MySQL/Vue.js and reponsible for workflow management, data visualization and core data persistence.
Plugins are introduced for feature extensions, they can be grouped into 3 categories: resource management, data integration and practice enhancement. By conforming to the interface specification defined by WeCube, plugin developers can choose their preferred programing languages. Existing plugins commonly use Go and Java.
WeCube version 1.0 is released, its architecture is elaborated as follows:
- WeCube version 1.0 uses WeCMDB for data persistence, configuration data are all managed by WeCMDB.
- WeCube version 1.0 requires a CAS server for authentication, in order to keep data permissions consistent, we suggest to share the same CAS server used by WeCMDB. In WeCube version 1.1, a local user based authentication mode is supported.
- WeCube version 1.0 requires a S3-compatible object storge service for artifacts and scripts.
- WeCube version 1.0 includes 2 plugins: Tencent Cloud plugin for resource mangement and SaltStack plugin for automated deployment.
Implemented features in WeCube Version 1.0:
WeCube Version 2.0 is under active development and will come soon.
The main menu of WeCube matches its design concept, including Workbench, Expectation, Execution, Watching, Wisdom, Equilibration, Workflow and System.
-
System
- System parameters: All the necessary parameters used during the WeCube Platform running can be managed.
- Authorization: Users, Roles, and Menus are managed in this section, also the mapping between users, roles and menus.
- Resources: Manage resources provided by WeCube, such as container hosts and instances running on the hosts.
- High-risk rules: manage the detection rules of high-risk commands. When the platform is used to perform interface, confirm prompt will pop-up while any rules hit.
-
Workflow
- Plugin registration: Select the plugin package to upload. The plugin package needs to declare the plugin's dependencies, required menus, data models, system parameters, authorization settings, and resources. After registration, the plugin runs through the container, multiple instances supported, and you can view the log of the plugin operation. Select the plugin service, and associate the CMDB data model attribute value with the parameters.
- Task orchestration: to design workflows to finish automated or semi-automated tasks, such as task orchestration to create VPC, subnet and virtual machines on the public cloud. Each node in the workflow is associated with a plugin for execution.
-
Expectation(WeCMDB plugin)
- Data center design: to create a plan and to design the structure of data centers
- Data center resource plan: to instantiate a data center design and plan actual resources for a specific data center
- Application architecture design: to design logical architecture of applications
- Application deployment design: to design the deployment architectural view and trigger deployment for applications
- CI data query and management: to query and manage data for a single CI type through the graph of the CI model
- CI integrated query: to configure queries involving multiple CI types, for example, to find out all hosts used by a specific application
-
Execution
- Task orchestration execution: to execute complicated operations with predefined workflow and plugins. Canary release supported.
- Artifacts(Artifacts plugin): to manage deployment packages for applications. Customization of the configuration file and value substitution rules is supported to eliminate manual intervention.
- Batch execution: to execute simple operation tasks in a selected scope of targets.
-
Tasks (Service-Management plugin)
- Template management: service catalog management, service request template management.
- Service management: service request management, task management.
-
Watching (Open-Monitor plugin)
- Agent management: registration, start, stop;
- Data management: Provide data collection configuration, data query, and other functions;
- Alarm management: Provides functions such as threshold configuration, log monitoring, and alarm triggering;
- View management: Provide graphic configuration and custom view functions;
-
Equilibration (On Planning)
-
Wisdom
- Capacity modeling: obtain the coefficient relationship between the business metrics and resource consumption metrics through multiple regression analysis modeling.
- Capacity prediction: input the predicted business metrics into the model to obtain reasonable suggestions on resource capacity allocation.
WeCube is using containerized deployment.
PLease refer to WeCube Compilation Guide on how to compile WeCube.
PLease refer to WeCube Installation Guide on how to install WeCube.
Please refer to the WeCube User Guide for guides on WeCube usage and operation.
WeCube is developed with Java and Vue.js, it uses MySQL for data persistence and relies on Tomcat as the web application container.
Please refer to the WeCube Developer Guide on how to set up the development environment.
Please refer to the WeCube Plugin Developer Guide on how to develop a new plugin.
WeCube is licensed uner the Apache License Version 2.0, please refer to LICENSE for details.
-
For quick response, please raise an issue to us, or you can also scan the following QR code to join our community, we will provide feedback as quickly as we can.
-
Contact us: fintech@webank.com