Analysis of the host access principle of ChengYing, a one-stop operation and maintenance manager

In previous articles, we have introduced ChengYing ’s installation principle, product package production, product line deployment, etc. This article will introduce a content that troubles many developers——ChengYing host access. Help all developers who are interested in ChengYing better understand and use ChengYing, a one-stop fully automated operation and maintenance manager .

Host access process

After deploying ChengYing, enter from the cluster, enter the host resource , edit the cluster, and start the host access process. For the specific access process, please see the picture below and the video explanation at the end of the article, mainly pay attention to the analysis, download and reading of the script.

file

Common problems in host access

In the process of communicating with developers at ordinary times, we have also collected many questions that you will encounter during the process of accessing the ChengYing host, and will answer them below.

Q1: After the host is connected, the page has not been displayed

Problem phenomenon:

The page neither shows that the management and control installation is successful, nor does it show that the host initialization is successful or failed

problem causes:

The network timed out, the installation script could not be downloaded

Solution:

First check whether the ports are normal, and perform telnet on ChengYing's 8889, 8864, 8890 on the agent

Q2: Host initialization failed

Problem phenomenon:

file

problem causes:

The access user does not have sudo privileges

Solution:

Log in to the access host, switch to the root user, execute visudo, and add user password-free operations

Q3: Host preview error

Problem phenomenon:

file

problem causes:

The host has been initialized before, but it has not been successful, and the agent has reconnected, resulting in dirty data

Solution:

To query dirty data and delete it, the code is as follows:

SELECT 
    deploy_cluster_host_rel.id,
    deploy_host.id,
 FROM
    deploy_cluster_host_rel
        LEFT JOIN
    deploy_host ON deploy_cluster_host_rel.sid = deploy_host.sid
        LEFT JOIN
    sidecar_list ON sidecar_list.id = deploy_host.sid
WHERE
    deploy_cluster_host_rel.clusterId = 1 # 根据集群ID自行调整
        AND deploy_cluster_host_rel.is_deleted = 0;


update deploy_cluster_host_rel set is_deleted = 1 where id in (8,9,11,13);

Host Access Specifications

Environmental preparation

· The open source version is suitable for x86 architecture, operating system centos7 or above

When deploying ChengYing, extract and disable the ipv6 protocol: net.ipv6.conf.all.disable_ipv6 = 0

· The access user configures password-free in advance (the root user ignores it)

· Check whether the security group is open in advance, the server 8864, 8889, 8890 is open to the control terminal , and 80 is open to all

failure handling

· The installation of the management and control terminal failed. After solving the failure problem, you can re-connect it

· The host failed to initialize. After solving the failure problem, restart the agent client. If it cannot be restarted, first go through the host removal process on the page, and then reconnect the host

open source tools

https://github.com/go-bindata/go-bindata

Manage installation scripts

file

initialization script

file

Video course & PPT acquisition

Video lessons:

https://www.bilibili.com/video/BV1Po4y157LF/?spm_id_from=333.999.0.0

Courseware acquisition:

https://www.dtstack.com/resources/1045

"Dutstack Product White Paper": https://www.dtstack.com/resources/1004?src=szsm

"Data Governance Industry Practice White Paper" download address: https://www.dtstack.com/resources/1001?src=szsm If you want to know or consult more about Kangaroo Cloud big data products, industry solutions, and customer cases, visit Kangaroo Cloud official website: https://www.dtstack.com/?src=szkyzg

At the same time, students who are interested in big data open source projects are welcome to join "Kangaroo Cloud Open Source Framework DingTalk Technology qun" to exchange the latest open source technology information, qun number: 30537511, project address: https://github.com/DTStack

iQIYI client "White" TV, the background uploads at full speed The highest-paid technical position in 2023 deepin uses Asahi Linux to adapt Apple M1 Threads registrations have exceeded 30 million, and the backend is based on CPython's deep "magic modification" TIOBE July list: C++ is about to surpass C, JavaScript enters Top6 Visual Studio Code 1.80 released, supports terminal picture function ChatGPT traffic drops by 10% mid-background front-end suffers from CURD for a long time, and today will take Koala Form July database ranking: Oracle soars, Once again opened up the global desktop browser market share rankings, Safari continued to sit firmly in the second place
{{o.name}}
{{m.name}}

Guess you like

Origin my.oschina.net/u/3869098/blog/10087555
Recommended