Cloud Computing Lab_manual
Cloud Computing Lab_manual
Cloud Computing
1 Case study on Amazon EC2 and learn about Amazon EC2 web services.
3
Creating an Application in SalesForce.com using Apex programming Language.
4 Design and develop custom Application (Mini Project) using Salesforce Cloud.
Mini-Project
Setup your own cloud for Software as a Service (SaaS) over the existing LAN
in your laboratory. In this assignment you have to write your own code for
5
cloud controller using open-source technologies to implement with HDFS.
Implement the basic operations may be like to divide the file in segments/blocks
and upload/ download file on/from cloud in encrypted form.
Study material provided by: Vishwajeet Londhe
Telegram Channel
https://t.me/SPPU_TE_BE_COMP
(for all engineering Resources)
WhatsApp Channel
(for all tech updates)
https://whatsapp.com/channel/
0029ValjFriICVfpcV9HFc3b
Insta Page
(for all engg & tech updates)
https://www.instagram.com/
sppu_engineering_update
Engineering
Practical No: 01
Practical Title: Case study on Amazon EC2 and learn about Amazon EC2 web services.
Objectives:
• To learn Amazon EC2 web services
• To study on Amazon EC2 and learn about Amazon EC2 web services.
Hardware Requirements :
• Pentium IV with latest configuration
Software Requirements :
• Ubuntu 20.04
Theory:
Open all the services and click on EC2 under Compute services. This will launch the
dashboard of EC2.
Here is the EC2 dashboard. Here you will get all the information in gist about the AWS
EC2 resources running.
Step 2) On the top right corner of the EC2 dashboard, choose the AWS Region in
which youwant to provision the EC2 server.
Here we are selecting N. Virginia. AWS provides 10 Regions all over the globe
In the next step of the wizard, enter details like no. of instances you want to launch at a
time.
Here we are launching one
instance.Configure Instance
Step 1) No. of instances- you can provision up to 20 instances at a time. Here we are
launchingone instance.
Step 2) Under Purchasing Options, keep the option of 'Request Spot Instances'
unchecked as ofnow. (This is done when we wish to launch Spot instances instead of on-
demand ones. We will come back to Spot instances in the later part of the tutorial).
Step 3) Next, we have to configure some basic networking details for our EC2 server.
You have to decide here, in which VPC (Virtual Private Cloud) you want to launch your
instance and under which subnets inside your VPC. It is better to determine and plan this
prior to launching the instance. Your AWS architecture set-up should include IP ranges
for your subnets etc. pre-planned for better management. (We will see how to create a
new VPC in Networking section of the tutorial.
Engineering
Subnetting should also be pre-planned. E.g.: If it's a web server you should place it in the
public subnet and if it's a DB server, you should place it in a private subnet all inside
yourVPC.
Below,
1. Network section will give a list of VPCs available in our platform.
2. Select an already existing VPC
3. You can also create a new VPC
Here I have selected an already existing VPC where I want to launch my instance.
Once your instance is launched in a public subnet, AWS will assign a dynamic public
IPto it from their pool of IPs.
Step 5) In this step,
You can choose if you want AWS to assign it an IP automatically, or you want to do
itmanually later. You can enable/ disable 'Auto assign Public IP' feature here likewise.
Here we are going to assign this instance a static IP called as EIP (Elastic IP) later. So
we keep this feature disabled as of now.
Engineering
Engineering
Conclusion:
Thus, we saw in detail how to create an on-demand EC2 instance in this tutorial. Because it is an on-
demand server, you can keep it running when in use and 'Stop' it when it's unused to save on your
costs
Engineering
Practical No : 2
Practical Title: Installation and configure Google App Engine.
Objectives:
• To learn basic of Google App Engine.
• To install and configure Google App Engine.
Hardware Requirements :
• Pentium IV with latest configuration
Software Requirements :
• Ubuntu 20.04, Web application i.e. Google App Engine
Theory:
Introduction
Google App Engine is a web application hosting service. By “web application,” we mean an
application or service accessed over the Web, usually with a web browser: storefronts with
shopping carts, social networking sites, multiplayer games, mobile applications, survey
applications, project management, collaboration, publishing, and all the other things we’re
discovering are good uses for the Web. App Engine can serve traditional website content too,
such as documents and images, but the environment is especially designed for real-time
dynamic applications. Of course, a web browser is merely one kind of client: web application
infrastructure is well suited to mobile applications, as well.
In particular, Google App Engine is designed to host applications with many
simultaneous users. When an application can serve many simultaneous users without degrading
performance, we say it scales. Applications written for App Engine scale automatically. As
more people use the application, App Engine allocates more resources for the application and
manages the use of those resources. The application itself does not need to know anything about
the resources it is using.
The app engine is a Cloud-based platform, is quite comprehensive and combines
infrastructure as a service (IaaS), platform as a service (PaaS) and software as a service (SaaS).
The app engine supports the delivery, testing and development of software on demand in a
Cloud computing environment that supports millions of users and is highly scalable.
The company extends its platform and infrastructure to the Cloud through its app engine.
It presents the platform to those who want to develop SaaS solutions at competitive costs .Have
you ever wondered as to who stands to benefit the most from the Google app engine? If you are
a business SME or enterprise which owns any web-based application that needs to be scaled
Engineering
without any compromise on the performance then Google App Engine is a good fit. Companies
like Best Buy and Khan Academy have chosen Google App Engine for their apps.
Cloud SQL, logs, datastore, dedicated Memcache, blobstore, Memcache and search.
Cloud Endpoints.
modules, SSL for custom domains, modules, remote access, and multitenancy.
Scalability
For any app’s success, this is among the deciding factors. Google creates its own apps
using GFS, Big Table and other such technologies, which are available to you when you
Engineering
utilize the Google app engine to create apps. You only have to write the code for the app
and Google looks after the testing on account of the automatic scaling feature that the app
engine has. Regardless of the amount of data or number of users that your app stores, the
app engine can meet your needs by scaling up or down as required.
Cost Savings
You don’t have to hire engineers to manage your servers or to do that yourself. You can
invest the money saved into other parts of your business.
Platform Independence
You can move all your data to another environment without any difficulty as there is not
many dependencies on the app engine platform.
Conclusion :
Practical No: 3
Practical Title: Creating an Application in SalesForce.com using Apex programming
Language
Objectives:
• To learn salesforce cloud administration
• To create application in SalesForce.com using Apex programming
Hardware Requirements :
• Pentium IV with latest configuration
Software Requirements :
• Ubuntu 20.04, Web application i.e. salesforce.com
Theory:
What is Apex?
Apex is a proprietary language developed by the Salesforce.com. As per the official definition,
Apex is a strongly typed, object-oriented programming language that allows developers to
execute the flow and transaction control statements on the Force.com platform server in
conjunction with calls to the Force.com API.
It has a Java-like syntax and acts like database stored procedures. It enables the developers to
add business logic to most system events, including button clicks, related record updates, and
Visual force pages. Apex code can be initiated by Web service requests and from triggers on
objects. Apex is included in Performance Edition, Unlimited Edition, Enterprise Edition, and
Developer edition.
.
Engineering
Apex has built in support for DML operations like INSERT, UPDATE, DELETE and also DML
Exception handling. It has support for inline SOQL and SOSL query handling which returns the
set of sObject records. We will study the sObject, SOQL, SOSL in detail in future chapters.
Apex is easy to use as it uses the syntax like Java. For example, variable declaration,
Apex is data focused and designed to execute multiple queries and DML statements together. It
issues multiple transaction statements on Database.
Strongly Typed
Apex is a strongly typed language. It uses direct reference to schema objects like Object and any
invalid reference quickly fails if it is deleted or if is of wrong data type.
Multitenant Environment
Apex runs in a multitenant environment. Consequently, the Apex runtime engine is designed to
guard closely against runaway code, preventing it from monopolizing shared resources. Any
code that violates limits fails with easy-to-understand error messages.
Upgrades Automatically
Easy Testing
Apex provides built-in support for unit test creation and execution, including test results that
indicate how much code is covered, and which parts of your code can be more efficient.
Engineering
Apex should be used when we are not able to implement the complex business functionality
using the pre-built and existing out of the box functionalities. Below are the cases where we
Apex Applications
over multiple objects at the same time and also custom validation
implementation.
functionality
or flows.
Flow of Actions
There are two sequence of actions when the developer saves the code and when an end user
performs some action which invokes the Apex code as shown below –
Engineering
Developer Action
When a developer writes and saves Apex code to the platform, the platform application server
first compiles the code into a set of instructions that can be understood by the Apex runtime
When an end-user triggers the execution of Apex, by clicking a button or accessing a Visual
force page, the platform application server retrieves the compiled instructions from the metadata
and sends them through the runtime interpreter before returning the result. The end user
observes no differences in execution time as compared to the standard application platform
request.
Since Apex is the proprietary language of Salesforce.com, it does not support some features
which a general programming language does. Following are a few features which Apex does not
support −
in User Interface.
to
prevent the standard functionality execution.
to
prevent the standard functionality execution.
Variable Declaration
As strongly typed language, you must declare every variable with data type in Apex. As seen in
the code below (screenshot below), lstAcc is declared with data type as List of Accounts.
SOQL Query
This will be used to fetch the data from Salesforce database. The query shown in screenshot
This loop statement is used for iterating over a list or iterating over a piece of code for a
specified number of times. In the code shown in the screenshot below, iteration will be same as
whether to go for execution or to stop the execution of the particular piece of code. For example,
in the code shown below, it is checking whether the list is empty or it contains records.
DML Statement
Performs the records insert, update, upsert, delete operation on the records in database. For
example, the code given below helps in updating Accounts with new field value.
In all the editions, we can use any of the following three tools to develop the code −
Conclusion:
Reference: https://www.tutorialspoint.com/apex/apex_overview.html
Engineering
Practical No : 04
Practical Title: Design and develop custom Application (Mini Project) using Salesforce Cloud.
Objectives:
• To learn salesforce cloud administration
• To install and configure the salesforce cloud administrative features
Hardware Requirements :
• Pentium IV with latest configuration
Software Requirements :
• Ubuntu 20.04, Web application i.e. salesforce.com
Theory:
Introduction
Salesforce.com Inc. is an American cloud-based software company headquartered in San
Francisco, California. Though the bulk of its revenue comes from a customer relationship
management (CRM) product, Salesforce also sells a complementary suite of enterprise
applications focused on customer service, marketing automation, analytics and application
development.
Salesforce is the primary enterprise offering within the Salesforce platform. It provides
companies with an interface for case management and task management, and a system for
automatically routing and escalating important events. The Salesforce customer portal provides
customers the ability to track their own cases, includes a social networking plug-in that enables
the user to join the conversation about their company on social networking websites, provides
analytical tools and other services including email alert, Google search, and access to customers'
entitlement and contracts.
Lightning Platform
Lightning Platform (also known as Force.com) is a platform as a service (PaaS) that allows
developers to create add-on applications that integrate into the main Salesforce.com application.
These third-party applications are hosted on Salesforce.com's infrastructure. Force.com
applications are built using declarative tools, backed by Lightning and Apex (a proprietary Java-
like programming language for Force.com) and Lightning and Visual force (a framework that
includes an XML syntax typically used to generate HTML). The Force.com platform typically
receives three complete releases a year. As the platform is provided as a service to its
developers, every single development instance also receives all these updates.
Engineering
Community Cloud
Community Cloud provides Salesforce customers the ability to create online web properties for
external collaboration, customer service, channel sales, and other custom portals I their instance
of Salesforce. Tightly integrated to Sales Cloud, Service Cloud, and App Cloud, Community
Cloud can be quickly customized to provide a wide variety of web properties Salesforce Sales
Cloud Salesforce Sales Cloud is a customer relationship management (CRM) platform designed
to support sales, marketing and customer support in both business-to-business (B2B) and
business-to-customer (B2C) contexts. Sales Cloud is a fully customizable product that brings all
the customer information together in an integrated platform that incorporates marketing, lead
generation, sales, customer service and business analytics and provides access to thousands of
applications through the AppExchange. The platform is provided as Software as a Service
(SaaS) for browser-based access; a mobile app is also available. A realtime social feed for
collaboration allows users to share information or ask questions of the user
community.Salesforce.com offers five versions of Sales Cloud on a per-user, per month basis,
from lowest to highest: Group, Professional, Enterprise, Unlimited and Performance. The
company offers three levels of support contracts: Standard Success Plan, Premier Success Plan
and Premier+ Success Plan.
1. From Setup, enter Apps in the Quick Find box, then select Apps.
2. Click New.
3. If the Salesforce console is available, select whether you want to define a custom app or a
Salesforce console.
4. Give the app a name and description.
An app name can have a maximum of 40 characters, including spaces.
5. Optionally, brand your app by giving it a custom logo.
6. Select which items to include in the app.
7. Optionally, set the default landing tab for your new app using the Default Landing
Tab drop-down menu below the list of selected tabs. This determines the first tab a user
sees when logging into this app.
Engineering
8. Choose which profiles the app will be visible to.
9. Check the Default box to set the app as that profile’s default app, meaning that new users
with the profile see this app the first time they log in. Profiles with limits are excluded
from this list.
10. Click Save
What is the difference between custom application and console application in sales force?
A custom application is a collection of tabs, objects etc that function together to solve a
particular problem.
A console application uses a specific Salesforce UI - the console. Console applications are
intended to enhance productivity by allowing everything to be done from a single, tabbed,
screen.
Conclusion:
Thus, We have designed and developed custom application using salesforce cloud.
Engineering
Practical No : 05
Practical Title: Setup your own cloud for Software as a Service (SaaS) over the existing
LAN in your laboratory. In this assignment you have to write your own code for cloud
controller using open-source technologies to implement with HDFS. Implement the basic
operations may be like to divide the file in segments/blocks and upload/ download file
on/from cloud in encrypted form.
Objectives:
Software Requirements :
• Ubuntu 20.04, VMwareESXi cloud
Theory:
Host/NodeESXi installation:-
ESXiHardwareRequirements:-
• ESXi6.7requiresahostmachinewithatleasttwoCPUcores.
• ESXi6.7supports64-bitx86processors
• ESXi6.7requirestheNX/XDbit to be enabled for the CPU in the BIOS.
• ESXi6.7requiresaminimumof4GBofphysicalRAM.Itisrecommended to
provide atleast 8 GB of RAM to run virtual machines in typical
productionenvironments.
ESXiInstaller:
Accept Agreement:
Engineering
Select storage :
Set IPV4
Set DNSeriver :
GUIAccess :
ClusterSetup
• CreatingDatacenter
• CreatingCluster
• Adding Hosts incluster
• Resourcesafteraddingcluster.
• DRS
• Failover
VCenter Access:
Engineering
Create Datacenter:
Create cluster :
Add host .:
Add host IP :
Hot summary :
Finish:
Engineering