If we use one machine for jenkins then the moment we run multiple jobs it may burden the machine/vm which can lead to system crash To reduce burden on jenkins server/vm we can go with master - Slave configuration which could be used to reduce the burden on jenkins server/vm by distributing tasks/load. Jenkins Master vs Jenkins Slave The machine/server where jenkins tools is installed can be referred as master machine which is used to create jobs, schedule the jobs and mange the jobs It will also distribute jobs executions into slave machines/servers Note : We can Run/execute jobs on jenkins Master machine too however it's not recommended Jenkins Slave: It's a machine which is connected to jenkins master machine and execute the job/task assigned by master machine/server. Slave server/machine will receive tasks from master machine for the job execution.
Load Balancers When all components are in same applications, all request comes to same servers then burden will increase on the same server. More the requests to the server, then the performance at the server side will be slow so the response time is high for clients. Eg: Youtube, Myntra, Flipkart,.......(lakhs of users will send the request still the response time will be uniform for client) When burden increased on server it will process the request slowly and some times the server might crash also. To reduce the bu...
Standard Steps followed for developing JDBC(JDBC4.X) Application ======================================================= 1. Load and register the Driver 2. Establish the Connection b/w java application and database 3. Create a Statement Object 4. Send and execute the Query 5. Process the result from ResultSet 6. Close the Connection Step1: 1. Load and register the Driver A third party db vendor class which implements java.sql.Driver(I) is called as "Driver". This class Object we need to create and register it with JRE to set up JDBC environment to run jdbc applications. Note: public class com.mysql.cj.jdbc.Driver extends com.mysql.cj.jdbc.NonRegisteringDriver implements java.sql.Driver { public com.mysql.cj.jdbc.Driver() throws java.sql.SQLException; static {}; } In MySQL Jar, Driver class is implementing java.sql.Driver, so Driver class Object should be created and it should be registered to set up the JDBC environment inside JRE. 2. Establish the Connection b/w java applica...
Comments
Post a Comment