Dockone WeChat Share (118): The practice of container technology in enterprise-level services

Source: Internet
Author: User
Tags new set
This is a creation in Article, where the information may have evolved or changed.
"Editor's words," O sheng in the small and medium-sized enterprises to do services, the actual encounter many situations, such as the other side it is too weak, such as the infrastructure is too shabby, such as products to solve the industry needs, corporate personality needs, and so on, after several years of accumulation at present to explore a complete set of product solutions. At present, the product is a container-centric set of complete PAAs platform + a new micro-service architecture + bottom-level capabilities constitute a complete solution, now also entered a few traditional large-scale manufacturing enterprises to help them complete the next generation of information upgrade.

"Shenzhen station |3 Day burning brain-type Kubernetes training camp" Training content includes: kubernetes overview, architecture, logging and monitoring, deployment, autonomous driving, service discovery, network solutions, such as core mechanism analysis, advanced article--kubernetes scheduling work principle, Resource management and source code analysis.


Adjacent to the Enterprise service market object-oriented and product description


Adjacent Sheng is an enterprise-level service start-up enterprise, mainly for enterprises to provide business management solutions (products), the current customers are mainly medium-sized and small micro-enterprises, is also exploring the plan for large-scale manufacturing enterprises. At present, private cloud, hybrid cloud and public cloud are available for midsize enterprises, which provide public cloud solution for small micro enterprises.

Private Cloud Products:

Products:

Each of these apps is a separate set of container groups that the enterprise can delete, add, and close as needed at any time.

IT architecture


How to use container technology for enterprise-free deployment and maintenance-free


Because our users have poor it base, and we want to be product-based, we must solve whatever cloud (private cloud, public cloud, hybrid cloud) must be free of deployment, maintenance-free, especially on the private cloud. Because we are doing business system, the core data of the enterprise is above, so many enterprises choose the data to put on the local. We set several core containers to--restart=always, such as timed task container, base container, Health Check container, registry container. Health checks are also used to achieve maintenance-free. Users take the past directly connected to the power and network cable, in the LAN to download the client activation can be.

(Off-topic, we in order to solve the enterprise harsh environment, no room, frequent power outages caused by equipment damage, we in the seventh generation of product equipment using a fully enclosed server, no fan, to solve a large number of electrostatic dust problems, the use of all-copper guide to the internal heat all through the bottom of the shell, shell and inner shell vacuum insulation between At the same time in the device front-end installation of a small ups to provide more than 20 minutes of power supply, in just the timing of the container above to provide network monitoring, once the network off, will be about 15 minutes or so again if no pass will perform automatic shutdown, to avoid the hardware damage caused by power failure. )


How to use container orchestration tool to realize arbitrary extension of computing resources


In the enterprise development process, the user will be more and more, then how to realize the user arbitrarily expand? We provide a separate device, the user only need to plug in the LAN network cable, you can realize the resource expansion, the entire process flow: the added device will be registered to the server node nodes, and then the node in the original device under the pressure of the application container group and register to the gateway, The gateway makes the relevant traffic allocation through traffic.


How do you use containers to grow your business?


For example, I was originally a trade enterprise, now I want to open a factory, need to produce, that is, the original is invoicing that several applications, now need to join the production of several applications, the actual system is a new set of containers. The Micro Service architecture is as follows:

The intra-enterprise application MicroServices architecture is a newly developed framework for Linksame, and the gateway is developed using Nginx + LUA.

Enterprise Internal application--lote Gateway Design Description:

Lote gateway is the core component of enterprise internal application, mainly responsible for 2 parts: First, authorization verification and legality verification, when the user through the user name and password, in addition to private authentication on the SDN network, also provides local authorization authentication, whether the enterprise user, whether have the right to enter the corresponding application, Whether the application of keynote is legal; second, to guide the legitimate request to the corresponding micro-service application, with certain routing functions. Lote Gateway in the Enterprise Download application time will also verify whether the application is legitimate, can install, to ensure the security and reliability of enterprise data.


How to solve the problem that the product is adaptable in various industries or enterprises?


No one product can go to meet all the industry, all the users, but the general business is basically similar, so we developed a related Enterprise single application gateway--mote Gateway Design Description on a single application:

A single application (such as CRM is not necessarily meet the full needs of an enterprise, now to modify some of the business logic) to modify a certain part of the business logic to meet the needs of the industry or enterprise, developers or users only need to specify the main application (from Keyapp:), By the interface we specify (by SETP2 the second process "replace the second process" or by a finer modification by SETP 2.1 "Replace the 2.1 small steps in the second step process") you can develop the corresponding business logic at will, without needing to understand and focus on the code and data behind the original application itself, The Self-modification section is a completely separate application, and the data is stored separately. PS: Single application does not allow more than 5 correction applications.


Leveraging containers and IoT frameworks in the IoT world



The underlying communication based on UDP,COAP is a communication standard developed by the IETF for constrained device, comprising two layers: the message and the Req/rsp,message layer define the format of the data transfer, and for the unreliability of UDP transmission, A secure transport mechanism is added, and the REQ/RSP layer provides link support for the RESTful framework. At present, we and the corresponding partners have developed IoT access control and printers (note not the Internet), but also compatible with the market on the machine arm and other manufacturing equipment or with IoT chip equipment. Of course, this part of the integration with the blockchain, mainly to solve the security problems in the Internet of things, have the opportunity to do more detailed communication with you.


Using containers and mxnet to realize Ai's optimization in enterprise initialization and product design


Users in the process of using software the biggest obstacle is a large number of initial data input, such as organizational structure, permissions, industry data (materials, products), industry printing templates and so on. We started with some basic templates in the cloud, the user cloud on the modification process we recorded, by collecting a large number of samples for analysis, finally through the program to give an optimal template data and vocabulary, industry users more and more close to industry standards. Another application is the user design finished products, we provide a product cloud evaluation, the entire process is the user will submit the product, AI will submit some information to compare with our cloud AI library, through the dimension to determine the value, and finally return to the user a product competitiveness table to provide users with reference, such as a clothing, We will draw some dimensions (lines, colors) from the image, and then extract some information from the text information, and automatically build the related model of the clothes through the AI interface.


Q&a


Q: What is the experience of accessing the network between the container and the virtual machine, through Calico to enable the exchange of containers between the hosts, how to access the containers outside the container, especially in the public cloud environment, how does the PAAs service access the container?

A: We are now public cloud PAAs per user is a virtual machine, the virtual machine internal communication using the default network mode overlay, in the case of large concurrency is not obvious.
Q: Are containers bare metal deployment, container orchestration, and scheduling tools?

A: Our private cloud products are bare-metal deployments, and container orchestration and scheduling tools are currently available in version kubernetes.
Q: What software do you use to build your private cloud?

A: A Private cloud is A bare metal + container + Orchestration Tool + basic competency container (such as messaging, SDN, etc.).
is the Q:auto scaling vertical or horizontal?

A: The horizontal extension is to restart a set of containers inside another device and add the database container to the GE node.
Q: Micro-Service registration, service discovery is how to do it?

A: Micro-service registration is divided into 2 parts: 1. Whether the micro-service has been audited by the cloud, and whether it can be verified by Lote gateway; 2. Internal is achieved through the ETCD set (Health check).
The above content is organized according to the May 2, 2017 night group sharing content. Share people Yiangnengwei, founder of Wuhan Sheng-on-line Technology Co., Ltd. 10 enterprise-level experience, continuous entrepreneur, technology enthusiast, architect。 Dockone Weekly will organize the technology to share, welcome interested students add: Liyingjiesz, into group participation, you want to listen to the topic or want to share the topic can give us a message.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.