Application of Python in automatic operation and maintenance

Source: Internet
Author: User
Tags saltstack

Welcome to join Reboot development thousand people (365534424) technical exchange sharing every day

      I prefer to use "system platform management" to describe the work of "operation and maintenance". Pay attention to the two words of system and platform. OPS sounds a work of partial execution. The advantages of Python in system management are with strong development capabilities and a complete toolchain. Python's engineering development capabilities are strong, far stronger than a variety of shell and Perl. Easy to read and write, both object-oriented and functional style, but also good meta-programming ability. Through a systematic combination of various management tools, the above-mentioned various types of tools to develop two times, to form a unified server management system. Ruby, similar to Python, is also well-suited for writing system management software, but it is much worse than Python in related libraries and tools.

      For example: an operation, proficient in Bash,python,perl,ruby, wrote hundreds of single-function scripts (any language) at work to perform daily operations, covering monitoring, deployment, Network configuration, log analysis, security detection and many other aspects, all-encompassing. But what he did was just the operation, and did not put the system management to work well.
No more scripts, just the "operation" This behavior to the extreme. Writing more scripts does not translate into a company's valuable assets in system management.

      Making the system easy to manage is a project. Only automated management tools like Puppet (Ruby), Saltstack (python) can fully describe the entire system and bring all aspects of system management into a unified system, rather than a bunch of scripts.

     Python is very rich in server management tools, configuration management (Saltstack) batch execution (fabric, saltstack) monitoring (Zenoss, Nagios plug-ins) Virtualization Management (PYTHON-LIBVIRT) process Management (supervisor) cloud Computing (OpenStack) ... And most of the system C libraries have python bindings. For the process to determine the matter, eventually must be included in the system management systems, written as a program, as part of the system. Instead of being able to reuse various scripts that are free and monolithic.
       with the advent of the cloud era, small and medium-sized companies do not need to be operational. Large companies, without engineering development capability of operations, is not competitive.

This article is from the "Reboot DevOps Development" blog, please be sure to keep this source http://opsdev.blog.51cto.com/2180875/1670315

Application of Python in automatic operation and maintenance

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.