Cloud-Edge Computing: Resource Allocation

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson
Download our mobile app to listen on the go
Get App

Questions and Answers

In the context of cloud services, what is the primary distinction between a private cloud and a public cloud?

  • A private cloud is dedicated to a single organization, offering more control and security, while a public cloud is shared among multiple organizations, providing greater flexibility and scalability. (correct)
  • A private cloud offers greater scalability, while a public cloud provides more control over security.
  • A private cloud is managed by a third-party provider, whereas a public cloud is managed internally by the organization.
  • A private cloud utilizes only open-source technologies, while a public cloud relies on proprietary software.

What is the role of edge nodes in a collaborative cloud-edge environment?

  • To serve as the primary interface for user authentication and security protocols.
  • To act as local computing resources closer to the user, providing low-latency, high-bandwidth services and offloading processing from the cloud. (correct)
  • To manage billing and access control for all cloud resources.
  • To provide unlimited storage capacity for cloud services.

In a multi-edge-node scenario within a collaborative cloud-edge environment, what is a critical requirement for effective resource allocation?

  • Edge nodes should only handle local processing and avoid communication with the cloud.
  • The cloud and edge nodes must coordinate with each other to allocate resources effectively. (correct)
  • Resource allocation should be primarily managed by the cloud to ensure consistency.
  • Each edge node must operate independently to prevent conflicts.

Which of the following factors can influence cloud resource allocation strategies?

<p>User demand, network conditions, and available resources. (B)</p>
Signup and view all the answers

How can machine learning algorithms be applied in collaborative cloud-edge approaches?

<p>To optimize resource allocation over time. (A)</p>
Signup and view all the answers

Which of the following are common resource allocation techniques applicable to both cloud and edge resources?

<p>Load balancing, task offloading, and caching. (A)</p>
Signup and view all the answers

In a public cloud environment, cloud providers offer various pricing modes. How do these pricing modes impact resource allocation strategies?

<p>Pricing modes have different cost structures that affect resource allocation strategies. (D)</p>
Signup and view all the answers

What should an edge node do when it does not have enough available resources to process incoming computing tasks?

<p>Hand over all the arriving computing tasks to the cloud service for processing. (B)</p>
Signup and view all the answers

After allocating resources in a private cloud environment, what is the significance of calculating the computing cost of the edge node and cloud?

<p>The cost helps to optimize the allocation of VMs for subsequent time slots. (C)</p>
Signup and view all the answers

How is the DDPG algorithm used in resource allocation for collaborative cloud-edge environments?

<p>To generate actions based on policies and improve convergence and performance through a value function. (D)</p>
Signup and view all the answers

In the context of Markov Decision Processes (MDPs) for resource allocation, what does the state representation (s_t = (e_t, n_{t-1}, D_t, p_t)) signify?

<p>The state of the edge node at the beginning of each time slot, including remaining VMs, returned VMs, user demand, and the unit cost of VMs in a private cloud. (B)</p>
Signup and view all the answers

In the Parameterized Action Markov Decision Process (PAMDP), what is the role of discrete actions (k_1, k_2, k_3)?

<p>Choices between cloud service pricing models: on-demand, reserved, and spot instances. (A)</p>
Signup and view all the answers

In the DDPG algorithm, what is the role of the Critic network?

<p>Evaluating the Actor's performance using a value function, guiding the Actor's next action. (A)</p>
Signup and view all the answers

What is the purpose of CERAI (Cost Efficient Resource Allocation with private cloud) algorithm?

<p>Optimizing resource allocation specifically within a private cloud environment. (B)</p>
Signup and view all the answers

What does the determined policy network (x_k^*(s; \theta)) represent in the P-DQN resource allocation algorithm?

<p>Estimating the parameter value (x_k) based on the state (s), guiding the policy network. (C)</p>
Signup and view all the answers

AWS Global Infrastructure is built around regions and availability zones. What is the key characteristic of a region?

<p>It is an independent collection of AWS resources in a defined geography. (C)</p>
Signup and view all the answers

What does an Availability Zone (AZ) primarily represent within the AWS infrastructure?

<p>An independent failure zone within a typical metropolitan region. (B)</p>
Signup and view all the answers

In the context of AWS Regions and Availability Zones, what is the purpose of the low-latency links between AZs?

<p>To provide fast and reliable connection within a region compared with more hops between regions. (B)</p>
Signup and view all the answers

What is the AWS Shared Responsibility Model?

<p>AWS is responsible for the security <em>of</em> the cloud; customers are responsible for security <em>in</em> the cloud. (A)</p>
Signup and view all the answers

What is the purpose of Amazon's Virtual Private Cloud (VPC)?

<p>A logically isolated section of the AWS Cloud where customers can launch AWS resources in a virtual network. (A)</p>
Signup and view all the answers

Which AWS networking service is designed for establishing a dedicated network connection from on-premises to AWS?

<p>Direct Connect (B)</p>
Signup and view all the answers

What is the primary purpose of AWS Route 53?

<p>To provide a highly available and scalable Domain Name System (DNS) service. (A)</p>
Signup and view all the answers

Which of the following best describes the primary function of Amazon CloudFront?

<p>Global content delivery and caching. (C)</p>
Signup and view all the answers

Which AWS compute service is best suited for running applications that are event-driven and serverless?

<p>Lambda (C)</p>
Signup and view all the answers

Which of the following services is a Basic unit of compute capacity and offers a range of CPU, memory and local disk options?

<p>Elastic Compute Cloud (EC2) (D)</p>
Signup and view all the answers

What is AWS Auto Scaling?

<p>A service for automatically adjusting compute capacity to maintain performance. (C)</p>
Signup and view all the answers

In AWS, what is the purpose of Elastic Load Balancing (ELB)?

<p>To distribute incoming application traffic across multiple EC2 instances. (A)</p>
Signup and view all the answers

What is the primary purpose of Amazon S3?

<p>To provide durable, scalable object storage. (C)</p>
Signup and view all the answers

What function does Amazon Elastic Block Store (EBS) provide?

<p>High-performance block storage for use with EC2 instances (C)</p>
Signup and view all the answers

Which of the following AWS services is a fully managed NoSQL database service?

<p>Amazon DynamoDB (D)</p>
Signup and view all the answers

What is Amazon SQS (Simple Queue Service) used for?

<p>Reliable, highly scalable queue service for storing messages as they travel between computers. (A)</p>
Signup and view all the answers

Which AWS service is used for sending high-volume, high-quality emails?

<p>Amazon SES. (D)</p>
Signup and view all the answers

What is the main function of AWS Elastic Beanstalk?

<p>To provide a platform-as-a-service (PaaS) for deploying and managing web applications. (D)</p>
Signup and view all the answers

What is the primary function of AWS CloudFormation?

<p>To define and provision AWS infrastructure as code. (D)</p>
Signup and view all the answers

Which of the storage options is also known as Object Storage?

<p>S3 (B)</p>
Signup and view all the answers

Which AWS service is designed for data warehousing and analytics?

<p>Amazon Redshift (B)</p>
Signup and view all the answers

For hosting code repositories, which AWS service is a great solution?

<p>CodeCommit (C)</p>
Signup and view all the answers

Which AWS service is designed for processing vast amounts of data in parallel, making it suitable for big data analytics?

<p>Amazon EMR (Elastic MapReduce) (B)</p>
Signup and view all the answers

Flashcards

Cloud-Edge Collaboration

Collaborative cloud-edge approaches aims to provide better performance and efficiency than traditional cloud or edge approaches by tailoring resource allocation to specific use cases and evolving with user demand and network conditions.

"User-edge-cloud" model

A distributed computing environment where resources are allocated across user devices, edge nodes, and cloud servers.

Edge Nodes

Local computing resources closer to the user than the cloud, providing low-latency and high-bandwidth services, offloading some processing from the cloud.

Cloud Resource Allocation

Cloud Resource allocation strategies can be based on user demand, network conditions, and available resources. Machine learning can optimize allocation over time.

Signup and view all the flashcards

Private Cloud

A cloud service dedicated to a single organization for greater control and security.

Signup and view all the flashcards

Public Cloud

A cloud service shared by multiple organizations for more flexibility and scalability.

Signup and view all the flashcards

E

Total computing resources owned by the edge node.

Signup and view all the flashcards

e_t

Represents the number of remaining VMs of edge node in time slot 't'.

Signup and view all the flashcards

d_t^e

Number of VMs provided by the edge node.

Signup and view all the flashcards

d_t^c

Number of VMs provided by the cloud node.

Signup and view all the flashcards

h_t =(d_t^e, l_t)

The action for successfully allocating resources on the edge node, generating an allocation record.

Signup and view all the flashcards

n_t

The number of VMs available for releasing at the end of time slot t.

Signup and view all the flashcards

C_t^e

The cost of the edge node in time slot t, calculated as the sum of standby cost and computing cost.

Signup and view all the flashcards

C_t^pri

Cost of collaborative cloud-edge in private cloud environment

Signup and view all the flashcards

C_t^pub

Cost of collaborative cloud-edge in public cloud environment, including computing costs of both cloud and edge nodes.

Signup and view all the flashcards

∑C_t

The long-term cost of the system to be minimized over a time.

Signup and view all the flashcards

Resource Allocation

Problem modeled as a sequential decision-making task.

Signup and view all the flashcards

Markov Decision Process

Markov decision process tuple (S, A, P, r, γ).

Signup and view all the flashcards

s_t = (e_t, η_(t-1), D_t, p_t)

State of the edge node at the beginning of each time slot.

Signup and view all the flashcards

X_e

The ratio of the number of VMs provided by the edge node to the total number of VMs

Signup and view all the flashcards

X_k

The ratio of the number of VMs provided by the cloud node to the total number of VMs

Signup and view all the flashcards

PAMDP

Parametrized Action Markov Decision Process is a tuple (S, A, P, r, y).

Signup and view all the flashcards

K = {k1, k2, k3}

Set of all discrete actions.

Signup and view all the flashcards

DDPG algorithm

Classical algorithm of the ActorCritic algorithm.

Signup and view all the flashcards

DDPG network

Main Actor network in DDPG selects the appropriate action based on current state.

Signup and view all the flashcards

Policy Network

P-DQN is a determined policy network.

Signup and view all the flashcards

AWS Regions

An independent collection of AWS resources in a defined geographic area, providing a foundation for location-dependent privacy and compliance requirements.

Signup and view all the flashcards

Availability Zones

AWS are Designed as independent failure zones and physically separated within a typical metropolitan region.

Signup and view all the flashcards

Edge Locations

To deliver content to end users with lower latency

Signup and view all the flashcards

Regions in AWS

A geographically defined area where AWS services are available.

Signup and view all the flashcards

Latency in AWS

AWS has low-latency links between AZs in a region <2ms, usually <1ms

Signup and view all the flashcards

Virtual Private Cloud

Virtual Private Cloud, a logically isolated section of the AWS cloud, virtual network defined by the customer

Signup and view all the flashcards

Direct Connect

Connect AWS dedicatedly

Signup and view all the flashcards

VPN Connection

Virtual network in AWS

Signup and view all the flashcards

Elastic Compute Cloud (EC2)

Compute capacity on the cloud through AWS

Signup and view all the flashcards

Auto-scaling

Automatic re-sizing of compute clusters based upon demand

Signup and view all the flashcards

Elastic Load Balancing

Create highly scalable applications

Signup and view all the flashcards

S3 - Durable storage

Basic storage system on AWS

Signup and view all the flashcards

Elastic Block Store

Another storage system on AWS

Signup and view all the flashcards

Study Notes

  • Dr. Rajiv Misra is a Professor in the Dept. of Computer Science & Engg. at the Indian Institute of Technology Patna.
  • Collaborative cloud-edge approaches can yield better performance and efficiency compared to solely cloud or edge approaches.
  • Resource allocation strategies can be customized for specific use cases and evolve with user demand and network conditions.

The Collaborative Cloud-Edge Environment

  • The "user-edge-cloud" model distributes computing resources across user devices, edge nodes, and cloud servers.
  • Optimizing system performance and ensuring efficient resource use are key goals of resource allocation.
  • Collaborative cloud-edge approaches can be more effective compared to approaches that focus solely on cloud or edge resources.
  • Cloud services include private and public clouds.
  • Private clouds dedicate resources to a single org to enable greater control and security.
  • Public clouds are shared by multiple orgs for greater control and scalability.
  • Edge nodes consist of local computing resources closer to the end user than cloud nodes enabling reduced latency.
  • Edge nodes offer low-latency, high-bandwidth services and offload some processing from the main cloud.
  • Cloud resource allocation can be based on user demand, network conditions, and available resources.
  • Machine learning algorithms optimize resource allocation over time in collaborative cloud-edge approaches.
  • Load balancing, task offloading, and caching are common resource allocation techniques for cloud and edge resources.
  • In multi-edge-node scenarios, cloud and edge nodes must coordinate to allocate resources effectively.
  • Communication protocols and data sharing are enablers for effective coordination in cloud-edge environments.

Public vs. Private Cloud Environments

  • In public clouds, the cloud provider offers different pricing models for cloud services based on demand.
  • Pricing models also have different cost structures affecting resource allocation strategies.
  • Amazon, Microsoft, and Alicloud offer three different pricing models, and each with distinct cost structures.
  • Edge nodes should select the appropriate pricing model and user allocation to rented or own VMs.
  • In private clouds, edge nodes have their own virtual machines (VMs) to process user demands.
  • VMs can be rented from the cloud node to scale up if the edge node's capacity is exceeded.
  • The cost of the private cloud fluctuates dynamically with its physical computing cost, so resource allocation should reflect this.
  • Computing costs can be calculated and utilized after allocation to process new computing tasks in the next time slot.

User Settings

  • Time is discretized into T time slots in this context.
  • For each time slot t, user demand is defined as Dt, comprised of dt and lt.
  • dt is the number of VMs requested and lt is the computing time needed.

Computing Resources and Cost of Edge Nodes

  • Variable E represents the total computing resources owned by the edge node.
  • Variable et is the number of remaining VMs of the edge node in time slot t, as resources are allocated to the end users.
  • The variable d^e_t expresses the number of VMs the edge node provided.
  • The number of VMs provided by the cloud node is expressed as df_t.
  • Edge nodes without available resources will hand over the computing tasks to the cloud service for processing rather than queuing.
  • Number of VMs the edge node provide from the equation d^e_t = dt - e_t, e_t ≥ 0, or 0 otherwise.
  • An allocation record, h_t = (d^e_t, l_t), is generated for each processed demand when resource allocation is conducted successfully.
  • If allocation is successful, an allocation list is created denoted as h = <h1, h2,...hm>.
  • At the end of each time slot the edge node traverses the list and reduces remaining computing time of each record by one.
  • Completed records corresponding to records that reach 0 remaining computing time duration release allocated VMs and are removed.
  • The number of VMs waiting to be released at the end of time spot t is denoted as _n_t.
  • n_t = sum from 1 to m ( d^e_i )
  • The constraint also expresses l_i=0 where h_i ϵ H.
  • The remaining VMs at time slot t+1 are calculated from the number of VMs at the beginning of time slot t:
    • et+1 = et - d^e_t + n_t
  • The cost of the edge node in time slot t as the sum of standby cost (et * pe) plus computing cost ((E – et)*pf).
    • C^e_t = et * pe + (E - _e_t)*pf

Cost of Collaborative Cloud-Side Computing

  • The cost of collaborative cloud-edge in a private environment:
    • c^pri_t = df_t * pc + C^e_t
  • df_t represents number of VMs cloud provides, and pc is the unit cost of VMs in private cloud.
  • The collaborative cloud-edge cost in a public environment:
    • c^pub_t =X₁p_odd^f_t _+_X₂p_upfrontd^f*_t + X₃p_red^f_t + X₄p_td^f_t + C^e_t
  • Where X_i ϵ {0,1}, to represent if server is being used
  • p_od, represents cost of on demand instances
  • p_upfront + p_re cost of reserved instances plus cost of reserved instance + customization price of reserved instances.
  • p_t cost of Spot Instances.

Goal

  • Time is split into T time slots, and the user submits the demand at the beginning of each slot.
  • The edge node allocates on resource allocation strategy.
  • The type of cloud service in public cloud depends the cost, corresponding with other factors.
  • The cost of current time slot t, is labelled as Ct, is calculated with the allocation, also the price.
  • Algorithm goal is to minimize the long-term cost.

Resource Allocation Algorithms: Markov Decision Process

  • Making resource allocation a sequential decision-making problem can be implemented through a Markov decision process.
  • Markov Process decision process is represented as (S, A, P, r, γ).
    • "S" is the finite set of states,
    • "A" the finite set of actions,
    • "P" the state transition
    • "r" the immediate award
    • "γ" the discount factor.
  • The tuple St = (et , nt-1 , Dt , pt ) ∈ S describes the state of each edge node.
  • Component et shows the remaining VMs of the edge node at t, also nt shows number of VMs returned
  • The reward is given by Dt and a unit VMs cost.
  • Action (k_e , x_k) where k=1 is a private cloud model and function reward is a negative value = -C_private cloud.

Parameterized Action Markov Decision Process (PAMDP)

  • Edge nodes first determine the pricing mode, then resource segmentation.
  • Resource allocation described by parametric action.
  • PAMDP has to be implemented to have sequential parameterized actions.
  • A PAMDP is a tuple (S, A, P, r, γ).
  • Different is finite set of parameterized actions.
  • The state is s = (e_t , n_t-1 Pt, εt )
  • The reward function can be described and parameterized the edge node to run.

• Cost efficient resource allocation with private cloud) Algorithm: - In this the Actor implements, Actor main, parameters also implemeents the reward function that is obtained. - Then user task is performed and actions according status from the private cloud.

Resource Allocation Based on Deep Deterministic Policy Gradient

  • A DDPG algorithm represents the actor rating
  • Actor generates actions, while the critic evaluates the action and generates.
  • The Actor is used according function equation to follow:
  • α = πρ(S) + N.
  • For loss function:
    • 𝛻𝐽(𝜔) = 𝑚(𝑦𝑗 − 𝑄(𝜙(𝑠),𝑎𝑗,𝜔)²

Resource Allocation Algorithms

  • DDPG structure is shown in figure.
  • The users algorithm contains user requests, demands.
  • The edge node, and the state of the cloud are obtained iterative.
  • The number of demands and notes are used from private sector.
  • New methods, interaction environment is stored in experiencal
  • CERAI sample, Loss Functions, ETC.
  • A training will be done according ensure continuation of resource.

Cost Efficient Resource Allocation Algorithm

  • Cost effective resource allocation is done using following steps
    • Inititalize Actor and critic network.
    • Select random, exploration parameters.

Resource Allocation Based on P-DQN

  • Action can ∈ A where the parameter space
  • Function that is used: Q
  • DQN uses the Q function.
  • P and DQN also estimates value where to use.

AWS Reference Model

  • AWS services are organized into a 5-layered reference model.
  • AWS is globally present with the datacentres present in different available regions.
  • Infrastructure is present with edge locations. Regions and availability zones are a key part of the underlying global infrastructure.
  • The regions themselves are made up of availability zones, each designed as independent regions.
  • Support is a reliable way to explain AWS Cloud

AWS Global Datacenter

  • Some key facts about AWS global infrastructure:
    • 20 regions with 5 more coming soon
    • 61 availability zone
    • 158 edge locations
    • 11 regional caches
    • 130 services

Regions

  • Region as geographic area that offers variety of AWS functions.
  • Customers can select specific regions for services.
  • Eleven regions exist globally.

AWS Region

  • Out of 13, 1 of the major cloud services, is Redundant with transit paths
  • Also, the Transit Centers Connect Through Private Links between Regions.
  • It has private links that exist direct through the internet also with an area between
  • AZ area usually always has a peak.

Example AWS Data Center

  • Single DC typically over 50,000 , Larger DCs undesirable.
  • Up to 102 Tbps single DC aws Custom network equipment

AWS Security

  • AWS has shared security between customers
  • Customers have applications between zones -also aws has Global Infrastructure, networking, etc

Virtual Private Cloud (VPC)

  • VPC = logical Section from the Aws cloud, virtual network
  • When launching to get Customer, All have vpcs

Networking

  • Dedicated connections to vpc through secure connection

Region and Avalailability Zone

Why Availability Zones

AWS Account, Userrs and Service Scope

AWS Compute and Anylitics, Storage and Database Services, Network and Management Services, Application and Development Services

Development and Test Enviroments

Big Data

  • Fully managed and simple
  • Easily launch customize etc or Amazon

High Performance Computing HPC

  • Amazon can have SSD platform and Network Performance

Storage Backup etc

Disaster Recovery

  • Disaster backup system is with AWS
  • On premises infrastructure, AWS provides multi-site solutions.

AppStream

  • An app based stream with High quality user streaming

Facebook based services

  • Facebook is implemented based in application to run

CERAU

  • is based in P-DQN
  • Also contains information or resource demands
  • Has exploration parameters that implement.

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

Related Documents

More Like This

Edge Computing Introduction Lecture
30 questions
Edge Computing Innovations
10 questions
Cloud Computing vs Edge Computing
18 questions
Use Quizgecko on...
Browser
Browser