In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces the relevant knowledge of "what is the access management method in operation and maintenance development". The editor shows you the operation process through an actual case, and the operation method is simple, fast and practical. I hope this article "what is the access management method in operation and maintenance development" can help you solve the problem.
If you associate the above path with the technology sequence, it may be some of the following solutions.
Ops_to_cmssh,paramiko,ansible_adhoccm_to_hostssh,paramiko,ansible_adhochost_to_dbcommand,pymysql,mysqldbcm_to_dbssh,pymysql,mysqldbops_to_dbpymysql,mysqldbops_to_hostssh,paramiko,ansible_adhoc
The access method refines two points:
System layer access:
Paramiko and ansible_adhoc
Database access
Pymysql,mysqldb
On this basis, one layer of refinement is carried out, and two points are extracted by access management:
The access of the database layer can extract the DAO layer and provide flexible configuration access through the factory mode, which will be a general interface, while the access of other databases can also be brought by this way. The result of extraction is that for the database type and access mode, the database access management can be completed, such as MySQL. I only need to enter mysql.mysqldb to access MySQL through the mysqldb library.
Similarly, the access of the system layer is similar. Currently, two options, paramiko and ansible_adhoc, can be used.
As for how to concatenate the access paths of the upper layer, follow the general idea:
Currently, there are only three types of paths from ops to db.
1) ops_to_cm,cm_to_host,host_to_db
2) ops_to_cm,cm_to_db
3) ops_to_db
Similarly, there are only the following types of paths from ops to host:
1) ops_to_cm,cm_to_host
2) ops_to_host
Finally, there is a third category, which is host_to_db.
If there is not a complete path analysis, the path may not be very complete.
In fact, these are similar to the work of management, need to get an optimal path according to the actual situation and configuration, and then be carried out by the specific task layer.
So after the above idea is abstracted, it is to get the access path and then perform the access task.
This is just the beginning, and there are still a few questions to figure out.
For example, there are three paths to ops_to_db. Take the first one.
1) ops_to_cm,cm_to_host,host_to_db
If it is the final execution node, host_to_db, if you use both pymysql,mysqldb execution modes, then the corresponding library files need to be available at the host level, while the ops and cm side is just called.
And if it's the third,
3) ops_to_db
You only need to make sure that the OS side has a complete library file.
So the first path is too deep and heavily dependent on the environment on the target side, which is relatively less recommended.
Third, if the ops side needs to have directly connected permissions and be able to access the database directly, then the ops side needs to be equipped with perfect access management. This can not be said to be unreasonable, but it will be relatively heavy for ops.
Well, the second is relatively good. We do it based on the central control terminal and support command mode and drive mode. The configuration of the central control terminal is suitable for all other servers. In this way, we can basically meet a basic requirement of central control. This can be regarded as the convergence of the demand.
Therefore, for this basic access management requirements, it will be divided into: system access management and database access management. Mapping to this scenario is a preliminary choice as follows.
2) ops_to_cm,cm_to_db
This is the end of the content about "what is the access management method in operation and maintenance development". Thank you for your reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.