Docsity

DevOps Full Course Notes in One Shot, Study notes of Artificial Intelligence

Toggle sidebar
bg1
DEVOPS:
PEO’S, PO’S, PSO’S
PROGRAM EDUCATIONAL OBJECTIVES:
PEO1: The graduates of the program will understand the concepts and
principles of Computer Science and Engineering inclusive of basic sciences.
PEO2: The program enables the learners to provide the technical skills
necessary to design and implement computer systems and applications, to
conduct open-ended problem solving, and apply critical thinking.
PEO3: The graduates of the program will practice the profession with work
effectively on teams to communicate in written and oral form, ethics,
integrity, leadership and social responsibility through safe engineering
leading them to contribute their might for the good of the human race.
PEO4: The program encourages the students to become lifelong activity and
as a means to the creative discovery, development, and implementation of
technology as well as to keep up with the dynamic nature of the Computer
Science and Engineering discipline.
PROGRAM OUTCOMES
Engineering knowledge: Apply the knowledge of mathematics, science,
engineering fundamentals, and an engineering specialization to the solution
of complex engineering problems.
Problem analysis: Identify, formulate, review research literature, and
analyze complex engineering problems reaching substantiated conclusions
using first principles of mathematics, natural sciences, and engineering
sciences.
Design/development of solutions: Design solutions for complex engineering
problems and design system components or processes that meet the specified
needs with appropriate consideration for the public health and safety, and the
cultural, societal, and environmental considerations.
Conduct investigations of complex problems: Use research-based
knowledge and research methods including design of experiments, analysis
and interpretation of data, and synthesis of the information to provide valid
conclusions.
Modern tool usage: Create, select, and apply appropriate techniques, resources,
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51

Partial preview of the text

Download DevOps Full Course Notes in One Shot and more Study notes Artificial Intelligence in PDF only on Docsity!

DEVOPS:

PEO’S, PO’S, PSO’S

PROGRAM EDUCATIONAL OBJECTIVES:

PEO1: The graduates of the program will understand the concepts and principles of Computer Science and Engineering inclusive of basic sciences. PEO2: The program enables the learners to provide the technical skills necessary to design and implement computer systems and applications, to conduct open-ended problem solving, and apply critical thinking. PEO3: The graduates of the program will practice the profession with work effectively on teams to communicate in written and oral form, ethics, integrity, leadership and social responsibility through safe engineering leading them to contribute their might for the good of the human race. PEO4: The program encourages the students to become lifelong activity and as a means to the creative discovery, development, and implementation of technology as well as to keep up with the dynamic nature of the Computer Science and Engineering discipline. PROGRAM OUTCOMES Engineering knowledge : Apply the knowledge of mathematics, science, engineering fundamentals, and an engineering specialization to the solution of complex engineering problems. Problem analysis : Identify, formulate, review research literature, and analyze complex engineering problems reaching substantiated conclusions using first principles of mathematics, natural sciences, and engineering sciences. Design/development of solutions: Design solutions for complex engineering problems and design system components or processes that meet the specified needs with appropriate consideration for the public health and safety, and the cultural, societal, and environmental considerations. Conduct investigations of complex problems : Use research-based knowledge and research methods including design of experiments, analysis and interpretation of data, and synthesis of the information to provide valid conclusions. Modern tool usage : Create, select, and apply appropriate techniques, resources,

and modern engineering and IT tools including prediction and modeling to complex engineering activities with an understanding of the limitations. The engineer and society : Apply reasoning informed by the contextual knowledge to assess societal, health, safety, legal and cultural issues and the consequent responsibilities relevant to the professional engineering practice. Environment and sustainability : Understand the impact of the professional engineering solutions in societal and environmental contexts, and demonstrate the knowledge of, and need for sustainable development. Ethics : Apply ethical principles and commit to professional ethics and responsibilities and norms of the engineering practice. Individual and team work : Function effectively as an individual, and as a member or leader in diverse teams, and in multidisciplinary settings. Communication: Communicate effectively on complex engineering activities with the engineering community and with society at large, such as, being able to comprehend and write effective reports and design documentation, make effective presentations, and give and receive clear instructions. Project management and finance : Demonstrate knowledge and understanding of the engineering and management principles and apply these to one’s own work, as a member and leader in a team, to manage projects and in multidisciplinary environments. Life-long learning : Recognize the need for, and have the preparation and ability to engage in independent and life-long learning in the broadest context of technological change. PROGRAM SPECIFIC OUTCOMES: PSO1: Design and development of software applications by using data mining techniques. PSO2 : Enrichment of graduates with global certifications to produce reliable software solutions.

UNIT - V

Testing Tools and automation: Various types of testing, Automation of testing Pros and cons, Selenium - Introduction, Selenium features, JavaScript testing, Testing backend integration points, Test-driven development, REPL-driven development Deployment of the system: Deployment systems, Virtualization stacks, code execution at the client, Puppet master and agents, Ansible, Deployment tools: Chef, Salt Stack and Docker TEXT BOOKS: Joakim Verona. Practical Devops, Second Edition. Ingram short title; 2nd edition (2018). ISBN10: 1788392574 2. Deepak Gaikwad, Viral Thakkar. DevOps Tools from Practitioner's Viewpoint. Wiley publications. ISBN: 9788126579952 REFERENCE BOOK:

  1. Len Bass, Ingo Weber, Liming Zhu. DevOps: A Software Architect's Perspective. Addison Wesley; ISBN-10.

Unit 1

Introduction

History

Software Development Life Cycle (SDLC)

A software life cycle model (also termed process model) is a pictorial and diagrammatic representation of the software life cycle. A life cycle model represents all the methods required to make a software product transit through its life cycle stages. It also captures the structure in which these methods are to be undertaken. Stage1: Planning and requirement analysis Requirement Analysis is the most important and necessary stage in SDLC. The senior members of the team perform it with inputs from all the stakeholders and domain experts or SMEs in the industry. Planning for the quality assurance requirements and identifications of the risks associated with the projects is also done at this stage.

Stage6: Deployment Once the software is certified, and no bugs or errors are stated, then it is deployed. Then based on the assessment, the software may be released as it is or with suggested enhancement in the object segment. After the software is deployed, then its maintenance begins. Stage7: Maintenance Once when the client starts using the developed systems, then the real issues come up and requirements to be solved from time to time. This procedure where the care is taken for the developed product is known as maintenance.

Waterfall model

Winston Royce introduced the Waterfall Model in 1970.This model has five phases: Requirements analysis and specification, design, implementation, and unit testing, integration and system testing, and operation and maintenance. The steps always follow in this order and do not overlap. The developer must complete every phase before the next phase begins. This model is named " Waterfall Model ", because its diagrammatic representation resembles a cascade of waterfalls.

1. Requirements analysis and specification phase: The aim of this phase is to understand the exact requirements of the customer and to document them properly. Both the customer and the software developer work together so as to document all the functions, performance, and interfacing requirement of the software. It describes the "what" of the system to be produced and not "how."In this phase, a large document called Software Requirement Specification (SRS) document is created which contained a detailed description of what the system will do in the common language. 2. Design Phase: This phase aims to transform the requirements gathered in the SRS into a suitable form which permits further coding in a programming language. It defines the overall software architecture together with high level and detailed design. All this work is documented as a Software Design Document (SDD). 3. Implementation and unit testing: During this phase, design is implemented. If the SDD is complete, the implementation or coding phase proceeds smoothly, because all the information needed by software developers is contained in the SDD.

During testing, the code is thoroughly examined and modified. Small modules are tested in isolation initially. After that these modules are tested by writing some overhead code to check the interaction between these modules and the flow of intermediate output.

4. Integration and System Testing: This phase is highly crucial as the quality of the end product is determined by the effectiveness of the testing carried out. The better output will lead to satisfied customers, lower maintenance costs, and accurate results. Unit testing determines the efficiency of individual modules. However, in this phase, the modules are tested for their interactions with each other and with the system. 5. Operation and maintenance phase: Maintenance is the task performed by every user once the software has been delivered to the customer, installed, and operational.

Advantages of Waterfall model

o This model is simple to implement also the number of resources that are required for it is minimal. o The requirements are simple and explicitly declared; they remain unchanged during the entire project development. o The start and end points for each phase is fixed, which makes it easy to cover progress. o The release date for the complete product, as well as its final cost, can be determined before development. o It gives easy to control and clarity for the customer due to a strict reporting system.

Disadvantages of Waterfall model

o In this model, the risk factor is higher, so this model is not suitable for more significant and complex projects. o This model cannot accept the changes in requirements during development.

o Without the use of DevOps, the team members are spending a large amount of time on designing, testing, and deploying instead of building the project. o Manual code deployment leads to human errors in production. o Coding and operation teams have their separate timelines and are not in synch, causing further delays.

o DevOps History

o In 2009, the first conference named DevOpsdays was held in Ghent Belgium. Belgian consultant and Patrick Debois founded the conference. o In 2012, the state of DevOps report was launched and conceived by Alanna Brown at Puppet. o In 2014, the annual State of DevOps report was published by Nicole Forsgren, Jez Humble, Gene Kim, and others. They found DevOps adoption was accelerating in 2014 also. o In 2015, Nicole Forsgren, Gene Kim, and Jez Humble founded DORA (DevOps Research and Assignment). o In 2017, Nicole Forsgren, Gene Kim, and Jez Humble published "Accelerate: Building and Scaling High Performing Technology Organizations". Agile development An agile methodology is an iterative approach to software development. Each iteration of agile methodology takes a short time interval of 1 to 4 weeks. The agile development process is aligned to deliver the changing business requirement. It distributes the software with faster and fewer changes. The single-phase software development takes 6 to 18 months. In single-phase development, all the requirement gathering and risks management factors are predicted initially. The agile software development process frequently takes the feedback of workable product. The workable product is delivered within 1 to 4 weeks of iteration.

ITIL

ITIL is an abbreviation of Information Technology Infrastructure Library. It is a framework which helps the IT professionals for delivering the best services of IT. This framework is a set of best practices to create and improve the process of ITSM (IT Service Management). It provides a framework within an organization, which helps in planning, measuring, and implementing the services of IT. The main motive of this framework is that the resources are used in such a way so that the customer get the better services and business get the profit. It is not a standard but a collection of best practices guidelines.

o Service Portfolio Management o Business Relationship Management o Strategy Management Strategy Management: The aim of this management process is to define the offerings, rivals, and capabilities of a service provider to develop a strategy to serve customers. According to the version 3 (V3) of ITIL, this process includes the following activities for IT services:

  1. Identification of Opportunities
  2. Identification of Constraints
  3. Organizational Positioning
  4. Planning
  5. Execution Following are the three sub-processes which comes under this management process:
  6. Strategic Service Assessment
  7. Service Strategy Definition
  8. Service Strategy Execution Financial Management: This process helps in determining and controlling all the costs which are associated with the services of an IT organization. It also contains the following three basic activities:
  9. Accounting 2. charging 3. Budgeting Following are the four sub-processes which comes under this management process:
  10. Financial Management Support
  11. Financial Planning
  12. Financial Analysis and Reporting
  13. Service Invoicing Demand Management This management process is critical and most important in this stage. It helps the service providers to understand and predict the customer demand for the IT services. Demand

management is a process which also work with the process of Capacity Management. Following are basic objectives of this process: o This process balances the resources demand and supply. o It also manages or maintains the quality of service. According to the version 3 (V3) of ITIL, this process performs the following 3 activities:

  1. Analysing current Usage of IT services
  2. Anticipate the Future Demands for the Services of IT.
  3. Influencing Consumption by Technical or Financial Means Following are the two sub-processes which comes under this management process:
  4. Demand Prognosis
  5. Demand Control. Business Relationship Management This management process is responsible for maintaining a positive and good relationship between the service provider and their customers. It also identifies the needs of a customer. And, then ensure that the services are implemented by the service provider to meet those requirements. This process has been released as a new process in the ITIL 2011. According to the version 3 (V3) of ITIL, this process performs the following various activities: o This process is used to represent the service provider to the customer in a positive manner. o This process identifies the business needs of a customer. o It also acts as a mediator if there is any case of conflicting requirements from the different businesses. Following are the six sub-processes which comes under this management process:
  6. Maintain Customer Relationships
  7. Identify Service Requirements
  8. Sign up Customers to standard Services
  9. Customer Satisfaction Survey
  10. Handle Customer Complaints
  11. Monitor Customer Complaints. Service Portfolio Management
  1. Service Level Agreement According to the version 3 (V3) of ITIL, this process performs the following activities: o It manages and reviews all the IT services to match service Level Agreements. o It determines, negotiates, and agrees on the requirements for the new or changed IT services. Following are the four sub-processes which comes under this management process:
  2. Maintenance of SLM framework
  3. Identifying the requirements of services
  4. Agreements sign-off and activation of the IT services
  5. Service level Monitoring and Reporting. Capacity Management This management process is accountable for ensuring that the capacity of the IT service can meet the agreed capacity in a cost-effective and timely manner. This management process is also working with other processes of ITIL for accessing the current infrastructure of IT. According to the version 3 (V3) of ITIL, this process performs the following activities: o It manages the performance of the resources so that the IT services can easily meet their SLA targets. o It creates and maintains the capacity plan which aligns with the strategic plan of an organization. o It reviews the performance of a service and the capacity of current service periodically. o It understands the current and future demands of customer for the resources of IT. Following are the four sub-processes which comes under this management process:
  6. Business Capacity Management
  7. Service Capacity Management
  8. Component Capacity Management
  9. Capacity Management Reporting Availability Management In this process, the Availability Manager is the owner. This management process has a responsibility to ensure that the services of IT meet the agreed availability goals. This process also confirms that the services which are new or changed does not affect the existing services. It is used for defining, planning, and analysing all the availability aspects of the services of IT.

According to the version 3 (V3) of ITIL, this process contains the following two activities:

  1. Reactive Activity
  2. Proactive Activity Following are the four sub-processes which comes under this management process:
  3. Design the IT services for availability
  4. Availability Testing
  5. Availability Monitoring and Reporting Risk Management In this process, the Risk Manager is the owner. This management process allows the risk manager to check, assess, and control the business risks. If any risk is identified in the process of business, the risk of that entry is created in the ITIL Risk Register. According to the version 3 (V3) of ITIL, this process performs the following activities in the given order: o It identifies the threats. o It finds the probability and impact of risk. o It checks the way for reducing those risks. o It always monitors the risk factors. Following are the four sub-processes which comes under the Risk process:
  6. Risk Management Support
  7. Impact on business and Risk analysis
  8. Monitoring the Risks.
  9. Assessment of Required Risk Mitigation Service Catalogue Management (SCM) In this process, the Service Catalogue Manager is the owner. This management process allows the Catalogue Manager to give the huge information about all the other management processes. It contains the services in the service operation phase which are presently active. It is a process which certifies that the service catalogue is maintained, produced, and contains all the accurate information for all the operational IT services.

In this process, the Supplier Manager plays a role as an owner. The supplier manager is responsible to verify that all the suppliers meet their contractual commitments. It also works with the Financial and knowledge management, which helps in selecting the suppliers on the basis of previous knowledge. Following are the various activities which are involved in this process: o It manages the sub-contracted suppliers. o It manages the relationship with the suppliers. o It helps in implementing the supplier policy. o It also manages the supplier policy and supports the SCMIS. o It also manages or maintains the performance of the suppliers. According to the version 3 (V3) of ITIL, following are the six sub-processes which comes under this management process:

  1. Provide the Framework of Supplier Management
  2. Evaluation and selection of new contracts and suppliers
  3. Establish the new contracts and suppliers
  4. Process the standard orders
  5. Contract and Supplier Review
  6. Contract Renewal or Termination. Compliance Management In this process, the Compliance Manager plays a role as an owner. This management process allows the compliance manager to check and address all the issues which are associated with regulatory and non-regulatory compliances. Under this compliance management process, no sub-process is specified or defined. Here, the role of Compliance Manager is to certify that the guidelines, legal requirements, and standards are being followed properly or not. This manager works in parallel with the following three managers:
  7. Information Security Manager
  8. Financial Manager
  9. Service Design Manager.

Architecture Management In this process, the Enterprise Architect plays a role as an owner. The main aim of Enterprise Architect is to maintain and manage the architecture of the Enterprise. This management process helps the Enterprise Architect by verifying that all the deployed services and products operate according to the specified architecture baseline in the Enterprise. This process also defines and manages a baseline for the future technological development. Under this Architecture management process, no sub-process is specified or defined. Service Transition Service Transition is the third stage in the lifecycle of ITIL Management Framework. The main goal of this stage is to build, test, and develop the new or modified services of IT. This stage of service lifecycle manages the risks to the existing services. It also certifies that the value of a business is obtained. This stage also makes sure that the new and changed IT services meet the expectation of the business as defined in the previous two stages of service strategy and service design in the lifecycle. It can also easily manage or maintains the transition of new or modified IT services from the Service Design stage to Service Operation stage. There are following various essential services or processes which comes under the Service Transition stage: o Change Management o Release and Deployment Management o Service Asset and Configuration Management o Knowledge Management o Project Management (Transition Planning and Support) o Service Validation and Testing o Change Evaluation Change Management In this process, the Change Manager plays a role as an owner. The Change Manager controls or manages the service lifecycle of all changes. It also allows the change Manager to implement all the essential changes to be required with the less disruption of IT services.