In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
Why use Jenkins distribution?
Using jenkins distributed to build job, when the amount of job is large enough, it can effectively relieve the pressure on jenkins-master, increase the number of parallel job, and reduce the time when job is in pending state.
Prepare:
Launch jenkins as master ip:192.168.29.94 on windows
Mac computer as slave ip:192.168.22.99
Deployment method:
Method 1: (recommended)
Jenkins ver2.155 is deployed by throwing war packets into tomcat. You can access the Jenkins address by starting tomcat: the advantage of http://localhost:xxx/jenkins, is that there is no root permission problem, and it is convenient and flexible to start and stop.
Method 2:
Start directly with .war package, and it is easy to report an error if you modify the configuration.
Unstable operation, add, modify plug-ins or permissions, easy to crash
It is not convenient to restart the Jenkins service, (java-jar / xx/xx/jenkins.war-- httpPort=xxxx)
Jenkins-master Settin
1. System Management-> manage Node-> New Node
Configuration introduction:
Name: take whatever you want. Slave-xx is recommended.
Number of concurrent components:
1. This value controls the number of Jenkins concurrent builds. Therefore, this value will affect the load pressure of the Jenkins system. Using the number of processors as its value would be a better choice.
two。 Increasing this value makes each build take longer to run, but it increases the overall number of builds because it allows CPU to build another project while it is waiting for IBO.
3. Setting this value to 0 is useful for removing a failed slave node from Jenkins without losing configuration information.
Remote working directory:
The directory of the slave machine. Jenkins uses JNLP to connect to remote slave.
Label:
Used to group multiple nodes
Usage:
Choose to use this node as much as possible, and priority will be given to building job on this node.
If you choose to bind only job, you need to specify the slave node in the running node.
Startup mode:
I choose to start the agent through java web here; you can use ssh
Other settings:
It's easy to understand. It's clear at a glance.
Just configure the Jenkins node. Next, create a directory on slave. I specified the directory on the mac machine: / Users/louiezhou/home/jenkins.
Start the slave node
Click on the newly created node and you will see a launch button that downloads a slave-agent.jnlp file and places it in the slave machine directory
Double-click to start.
Node list:
You can tell which is online and which is not at a glance.
How to use slave to build, please follow the official account continuously.
Today's recommended reading articles are recommended
Why do interface testing?
JMeter database operation
Jmeter Interface Test-regular expression
JMeter returns garbled code in Chinese
Jmeter interface testing-parameterization
JMeter Interface testing-Basics
Test-impression
Add Wechat to the consulting work
scan a QR code
Welcome self-recommendation and recommendation, need Wechat to push resume!
Please poke the QR code below to learn more.
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.