Coder Social home page Coder Social logo

bigtrustscheduling's Introduction

BigTrustScheduling

Big data task scheduling in cloud computing environments has gained considerable attention in the past few years, due to the exponential growth in the number of businesses that are relying on cloud-based infrastructure as a backbone for big data storage and analytics. The main challenge in scheduling big data services in cloud-based environments is to guarantee minimal makespan while minimizing at the same time the amount of utilized resources. Several approaches have been proposed in an attempt to overcome this challenge. The main limitation of these approaches stems from the fact that they overlook the trust levels of the Virtual Machines (VMs), thus risking to endanger the overall Quality of Service (QoS) of the big data analytics process. To overcome this limitation, we propose in this work a trust-aware scheduling solution called BigTrustScheduling that consists of three stages: VMs' trust level computation, tasks priority level determination, and trust-aware scheduling. Experiments conducted using real-world datasets collected from Google Cloud Platform pricing and Bitbrains tasks resource requirements show that our solution minimizes the makespan by 59% compared to the Shortest Job First (SJF), by 48% compared to the Round Robin (RR), and by 40% compared to the improved Particle Swarm Optimization (PSO) approaches in the presence of untrusted VMs. Moreover, our solution decreases the monetary cost by 58% compared to the SJF, by 47% compared to the RR, and by 38% compared to the improved PSO in the presence of untrusted VMs.

Getting started

Requirements

  • python 3
  • Install Python pip.
  • java
  • Hadoop 2
  • Download and install the Google Cloud SDK.

Implementation

There are two files for the code

  1. We use cloudsim to monitor the VM performance and calculate the trust value for the VMs.
  2. We use Python to cluster the tasks and rank it depend on the priorities, rank the VMs depend on the trust values.
  • We employ a datset collected by Bitbrains, a service provider that is specialized in managed hosting and business computation for enterprises.
  • (hadoop_vm_configuration.bash) will run jobtracker, tasktracker, namenode, datanode on the specific nodes according to your configuration.
  • In $HADOOP_HOME/conf/masters, enter the hostname or host IP of your namenode (don't forget to remove the default one if you don't need it).
  • In $HADOOP_HOME/conf/slaves, enter the hostname or host IP of your datanode (don't forget to remove the default one if you don't need it).
  • To use the scheduler, you also need to start a physical server that tasktracer is located on. The tasktracer will report CPU, RAM, bandwidth, and disk usage.
  • In $HADOOP_HOME/conf/core-site.xml, config the hadoop tmp directory (where Hadoop holds its data, use absolute path). and fs.default.name.
  • In $HADOOP_HOME/conf/hdfs-site.xml, configure the block size and packet size(strip size), block size should be a multiple of packet size.
  • In $HADOOP_HOME/conf/mapred-site.xml, configure task scheduler.

Please note: BigTrustScheduling is not yet production ready. However, the project is rapidly progressing with some very useful features.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.