Int ern at i onal  Journ al of Ele ctrical  an d  Co mput er   En gin eeri ng   (IJ E C E)   Vo l.   8 , No .   6 Decem ber   201 8 , p p.   5359 ~ 5370   IS S N: 20 88 - 8708 DOI: 10 .11 591/ ijece . v8 i 6 . pp 5359 - 53 70          5359       Journ al h om e page http: // ia es core .c om/ journa ls /i ndex. ph p/IJECE   Predi ction B ased Effici en t Resourc e Pr ovisionin g and  Its  Impact o n QoS Par am eters  in th e Cloud E nvironm ent       Lata  G adha vi ,   Madhuri  D  Bhavs ar   In sti tute  of Tec hnology,  Nirm a   U niv e rsity , Ind ia       Art ic le  In f o     ABSTR A CT   Art ic le  history:   Re cei ved   Ja n   2 3 , 2 01 8   Re vised  J un   2 9 , 201 8   Accepte J ul  24 , 2 01 8       The   purpose  of  thi pape is  to  provision  the   on  demand   resourc es   to  the   end   users  as  per   t hei n ee usin pre di ct ion   m et hod  in  c loud   computing   envi ronm ent .   Th provisioni ng  of  virt ual i ze res ourc es  to  cl oud  consum ers  ac cor d ing  to  th eir  nee is  cru cial  step  in  the   de plo y m ent   of  app li c at ions  on   the   cl oud .   How eve r,   th d y n amical  m ana gement  of  resourc es  for  var ia bl e   workloads  remai ns  ch allengi ng   proble m   for   cl o ud  provide rs.   Th is  problem   ca b solved   b y   using   a   pre di ct ion  b ase adaptive   resourc e   p rovisioni ng   m ec hani sm ,   which  c an  est imate   th upcomi ng  resourc d emands  of   appl i ca t ions.  Th pre sent  rese ar ch  int roduc es  a   pre dic t ion  base resourc provisioni ng  m odel   for  th alloc at ion  of  r esourc es  in  adva n ce .   T he  proposed  appr oac fa cilita te the   relea se  o unused  resourc es  in  the   pool  with  qual i t y   of  service  (QoS ),   which   is  de fined  base on   pre di ct ion  m ode to   p erf orm   th e   al lo ca t ion  of  re source in  adva nce.   In  th is  work,  the   m odel  is  used  to   det ermine  the   fu ture   workload  p red iction  for  use req uests  on  w eb  serve rs,   and  it impact  t oward  ac h ie ving   eff i ci en r esourc prov isioni ng  in  te rm o f   resourc exp loi t at ion  and  QoS .   The   m ai contributi on  of  th is  pape is  t o   deve lop   the  pre d ic ti on   m odel   for  eff icient  and  d y n amic  resourc pr ovisioni ng   to  m ee t   th r equirem ent s of end  u sers.   Ke yw or d:   D ynam ic  r esource  prov isi on i ng    E ff ic ie nt  res ource  prov isi on i ng   R esources   de plo ym ent   R esources e xploit at ion   Wor klo a d pr e di ct ion   Copyright   ©   201 8   Instit ut o f Ad vanc ed   Engi n ee r ing  and  S cienc e   Al l   rights re serv ed .   Corres pond in Aut h or :   Lat a J G a dhavi   In sti tute  of Tec hnology,    Nirm a U niv e rs it y, Ah m edab a d,   G uj a rat,  Indi a.   Em a il : 12 extp hde9 2@nirm aun i.ac.i n       1.   INTROD U CTION     In   the  cl oud  c om pu ti ng   env i r on m ent,  cl oud  us ers  of te have  tim e - changin requirem ents  fo vi rtual   resou rces.  T pro vision   res ources  for  dy na m ic   and   uncert ai cha ng e in   the  wor klo a and   t react  to   these   changes  ac co r dingly the  cl oud  pro vid e s houl m anag r eso ur ces  base on  the  re qu ire m ent  of   t he  use rs.   In  the  pr ese nt  stu dy,  wor klo a pr e dicti on   m od el   for  dynam ic   and   ef fici ent   resour ce  prov i sion i ng   is  pro pos e d   to m anag e the   nu m ber   of user  r e qu est s  and t he req uire d res ources.     On e   pro blem   with  s uch  re s ource p r ovisi onin sc hem is   the  oc cu rr e nce   of  thra sh i ng,  i wh ic h,  d ue   to  fr e qu e nt  vari at ion   of   the  w orkloa ( nu m ber   of   jo reque sts),  m achines  can  be  ad de a nd   release to  m eet   each  re quirem ent  w hile  sat isfyi ng   th Q oS  m et rics.  So lvi ng   t his  pro ble m   req uire an  abili ty   to  pr edi ct   the   incom ing   w orkloa on  the  s yst e m   and   to  al locat resource pr i or by   us ing   pr e dic ti on   m et ho ds   f or   th e   require re sour ces.   T he  m a i con t rib ution s   in  this pa per   a r e;   (a)   T he  desi gn  of  a p re dicti on   m echan ism   and  of  the  flo of   t he   pr e dicti on   m od el   for  dif fer e nt   per io ds an ( b)   T he  us e o predict io m e tho ds   t determ i ne  the  work l oa d base d on a  histor ic a l database .   The  rest  of   t he   pa pe r   is  or gani zed  as  fo ll ow s Sect io II   pre sents  su m m a ry  of  the   relat e work  in   this  dom ai n.   S ect ion   III  pro vi des  the   dom ain   a naly sis  f or  the  w orkl oad  patte rn.  Sect io IV  intr oduce the  pr e dicti on   m e chan ism Sect i on   descr i be the  case  stud us ed  to  va li d at the  pr opose ap proac an Evaluation Warning : The document was created with Spire.PDF for Python.
                          IS S N :   2088 - 8708   In t J  Elec  &  C om En g,   V ol.  8 , N o.   6 Dece m ber  2 01 8   :   5359   -   5370   5360   nu m ber   of  jo request  requir e m ent  fo resour ces I sect ion   VI,  we  pre sent  the  eval ua ti on   res ults  f or   the   resou rce  prov is ion in a nd all oc at ion . Fi nally ,  secti on VII  pr esents the  conc lud in g rem ark s  and  fu t ur sco pe.       2.   RELATE D  W ORK     Cl oud  com pu ti ng   c har act e rizes  the  delivery  of   c om pu ta ti on  as  serv ic e,  in  w hich  re sour ces,  su c a s   the  CPU s of t war e ha r dw a r e,  inf orm ation ,   and  de vices,  a re  gra nted  to   use rs  as  se r vices  thr ough  the  I nter net.   The  c har act e risti cs   of   cl oud  com pu ti ng ,   s uc as  aut o - scal ing ,   the  pro vision i ng  of  se r vices  base on  de m and ,   and   t he  util it m echan ism has  been   la rg el adopted  by  dif fer e nt  analy sts  [1 ] Cl oud  c om pu ti ng   pro vi des  a   scal able  and   flexible  platf orm   fo pro vidi ng   hi gh - perform ance  co m pu ti ng   require m ent [2 ] [ 3 ] [ 4 ].  Howe ver,  the  pool  of   res our ce,  fle xib le   se r vice  pr ov isi oni ng,  a nd  el ast ic it are  not  the  on ly   po te ntial of  the   cl oud.   The  cl oud  com pu ti ng  syst e m   pr ovisi ons  hom og eneous  an heter og e ne ous  operati ng  syst e m   env i ronm ent by  u sin g virtuali zat ion   In   the  IT   in du stry,  m ulti ple  cl oud  pro vid e r deliver  Q oS   to  end   use rs  a ccordin to  th ei dem and .   Howe ver,  a i ssu t hat  em erg es  from   the  init ia to  the  de plo ym ent  sta ge  is  t he  reali t that  the  patte rn  of   acce ss  to  the  app li cat io by  va rio us   en us e r var ie f reque n tl y.  As  resu l t,  there  is  an  unpre dicta ble  num ber   of   us er an var ia ble  w orkload   duri ng   s om per io ds .   I sta ti and  ineff ic ie nt  re so urce  prov isi on i ng   m echan ism durin pe rio ds   of   low  dem and   f or   res ources,   there  will   be  a ov e rloa of  ob ta ina ble  res ource s,   wh e reas  duri ng  per i od s   of   hi gh  dem and,  th avail able  res ources  will   be   inade qu at e T hi issue  le a ds   t poor  QoS  a nd  high  costs.  A   cu rr e nt   researc chal le ng e   is  to   de ve lop  an   ada ptive  m et ho of  r eso ur ce   pro visi on i ng  in term s o c ost  an d pe rfo rm a nce.      Cl oud  com pu ti ng   can  a ddre ss  the  above  chall enge  by  pro vision i ng   r eso ur ces  dy na m ic al l and  eff ect ively   to  end - us er  a pp li c at ion base on  the  predict io of   wor klo a and   resou rces  accor ding  to  th us e r   request  a rr ival  r at an t he  se r vice  res ponse   r at e.  This  m e an that  a dd it io na resou rces  ca be  pro vid e duri ng   per i od s   of  high   dem and   a nd  r el eased  durin per i od s   of  l ow  dem and wit hout  loss   of  Q oS   to  en us e rs  [5 ]   Th e   chall enge  with   su ch  dynam ic   resour ce  pro visio ning  strat egy  is  the  dete rm inati on   of   th prop e qua ntit of  resou rces  to  be   set   up   an pro vision e in   par ti cular  per i od   to  m ee the  exp ect ed   Qo for  va riabl e   work l oa d.   A ideal   so l utio would  re quire   the  ca pa bili ty  to  predict   th e   inc om ing   w orkl oad  an re quire resou rces in  advance   The  ex pected  outc om e is the d et erm inati on  of  the n um ber  of  virtu al  m achines that sh ould  be  create d,  config ur e d,   a nd  pro vid e to hand le   the v aria ble  w orkloa d.  Th is  chall en ge  has  bee a ddre ssed  th rou g va rio us  ways,  s uc rea ct ive  [ 6],  pr oa ct ive  [ 6],  an pr e dicti ve  [ 7 ]   ap pr oach es E f fecti ve  re sourc pro visio ning   is  not   an  easy   a nd  un com plica te ta sk .   To   m eet   the  ab ove  r eq uir e m ents,  the   f ollow in crit eria   sho uld   be   co nsi der e in  de velo ping  t he  al gorithm (a)   the  c om pu ta ti on   of   t he  use re quest   rate,  (b)  the  m ini m i zat ion   of   t he  r equ e st   rej ect io n rate , ( c) th e a ve rag respo ns e ti m and the  num ber  of  requests ti m ed  out, ( d) th e p erce nta ge  of  tim ed   ou re qu e sts  (P TOR)  for  nu m ber   of   us e r s,  and   (e the  accurate  com pu ta ti on   in  ad va nce  of   the  re so urc e s   require for  va riable  w ork l oad.  T he  c urren t   resea rc pr ese nts  a eff ic ie nt  an effe ct ive  res ource   pro vision i ng   al gorithm   that  us es  pr e dicti on   te ch nique  to   prov isi on  a nd  rem ov resou rces  dynam ic ally.  strat egy  to   im pr ov e   the  re source   util iz at ion  is  pr opose a nd  c om par ed  wi th  the     conve ntion al  a ppr oach.       3.   DOMAI N A N ALYSIS     The  cl oud  c ompu ti ng  f orm at  i m ai nly  descr ibed  by  us in t hr ee  se rv ic m od el s:  (a I nfra structu re  as   Serv ic ( Iaa S) wh ic ex pl ai ns   ab ou the  resou rces  offe r ing   procedu res   by  cl oud  pro vi der s;  ( b)   Plat f or m   as   Se rv ic (P aa S) wh ic desc ribes  how  cl oud  pro vid e rs  pro vid a entir cl oud  en vir onm ent  i m ple mente and   dep l oyed  in  certai pro gr am m ing   la ng ua ge  f or   spe ci fic  ty pe  of   app li cat io ns and   (c Softwa r as  a   Ser vice  (S aaS) wh ic ref e rs  to  app li cat ions   that  can   be  offer e to  custo m ers  accor ding  to  their  nee d.  The   dep l oyed  cl ou m od el are  m ai nly  cl assified   into  f our  f or m s:  (a)   publ ic   cl ou d,   w hi ch  is  avail able  fo r   ever y on e;   (b)  pr i vate  cl oud,  wh ic is  hoste s olely   fo r   on industry;   (c com m un it cl o ud,  w hich   is  cl oud  env i ronm ent  m ade  acce ssib le   on ly   to  a   c ertai gr oup  of  in dustry  or  i nd i viduals  in  colla borati on;  and  ( d)   hybri cl ou d,   wh ic re fer s   to   var i ou s   cl ouds  that  are  interc onnected   with  the  hoste a ppli cat ion de plo y ed  i the  cl oud  e nvir on m ent   [8] In   the   present  w ork the  te rm   “work l oa d”  re fe rs  to  th num ber   of  ar rive re qu e sts  to access t he re so urce  of the  cloud syste m   The  a ppli cat ion   or  jo bs   a re  ne ed  t be  s witc hed  a uto m at i cal ly   wh ic ar acce sse by  us ers In  th e   cl oud  com pu ti ng   sce na rio,   t he  w orkloa cat egory,  cl ou ser vice  m od el s,  an depl oy m ent  m od el are   interco nnect ed   with  each  ot he r,   as  sho wn   i Fig ure 1.   T he  ap plica ti on   work l oa patte rn   descr i bes  di ver se   us er  beh a viors wh ic res ult  in  the  util iz a ti on   of  IT  res ources  in  va ri able  form s.  T he  w or klo a c an  be   determ ined  bas ed  on  the  num ber   of   us e re quest s,  the  l oad   cal culat ion   on   the  ser ver s the   netw ork  tra ff i c,  an Evaluation Warning : The document was created with Spire.PDF for Python.
In t J  Elec  &  C om En g     IS S N: 20 88 - 8708       Predict ion B ase Eff ic ie nt Re so urc e Pr ovisi on i ng an d Its I mpact  on Qo   ( La ta J  Ga dhavi )   5361   the  data  st or a ge   [9 ] In   t he  cl oud  c om pu ti ng  env i ronm ent,  the  res ource  pr ov isi on i ng   de pe nds  on  the   inc om ing   work l oa d   [ 10] For  the   p red i ct ion   of   t he  w orkloa a nd  re so urces  i this   stud y,   the  w orkl oad   patte r ns  are   cat egorized   ba sed  on  t he  inc om ing   w orklo ad,  w hich   incl ud e the   nu m ber   of  use r   re quest s,   the  am ou nt   of   work  over   s pecified  pe rio d,  the  us er  re quest   arr ival  rate,  an the  ti m e   betwee tw consecuti ve  re qu e sts   (inter - ar rival  ti m e).  Accord i ng  to  the  ab ov e   char act erist ic s the  wor klo a is  cat ego rized   into  the  five  ty pes:  sta ti c, p eri od ic ,  unpre dicta ble,  conti nuously  c ha ngin g, an d o nce in a l ifet im e [ 11 ]     3.1.   St ati c W orkl oad   The  w ork loa for  resou rces w it c orres pondin or  e qu al  usage of  a hoste a ppli cat ion   is   cal le sta ti c   work l oa d.   In  this  w orkl oad  ty pe,   the re  is  no  re qu i rem ent  to  inc rease  or   dec rease  t he   processi ng  powe r ,   netw ork  ba ndwidth,  data  st orage or  m e m o ry  beca us e   the   w ork loa is   c on sta nt.  sta ti wor klo a does  not  require   the  fun ct ion al it y   of  th cl oud,  s uch  as  el ast ic it y.  Pr ivate   Websi te s   an wikis   ar exam ples  of   sit es  with a  sta ti c wor klo a d.      3.2.   Peri od ic  W or kload   Perio dic  jo bs   are  ve ry  com m on   in  our  da il ro utine.  Ye arly   incom tax   pay,  m on thl util ity  bill s,  traff ic   duri ng   ru s h   h o ur et c   are  the  exam ples  of   per io di ta sk or   jobs.  It  is  ob ser ve that  in  the  sa m e   interval,   m any  people u sin t he se  ta sk s . D uri ng  s uch  pe rio di ta sk s,   it   is  di ff ic ult  t prov i de  e nough  re sourc es   for  the  pea lo ad  an t ha nd le   the  unus e r eso ur ces  for  th non - pea lo a d.   T his  prob le m   le ads  to  ove r -   or  unde r - pro visio ning  of   res ourc es to th e  hoste a pp li cat ion.  Perio dic task occur at th e sa m e interval  of  t he day m on th,  or   ye ar;  howev e r,   th ey   con sist   of   hig he num ber   of  re qu e sts  ov e peak  per io d.   pe rio dic   work l oa oft en   requires   el ast ic it and   scal ab il ity  to  ha nd le   the  num ber   of  requests  durin the  pea inte rv al s .   The  c om pu tim g work l oa d patt ern  is  de picte d o Fi gure  1.              Figure  1. The   Cl oud  Com pu t ing   Wor klo a d Pat te rn       3.3.   Un pre dict ab le  Wo r klo ad   Si m il arly   to  per i od ic   w orkl oad,  an  un pr e di ct able  wo r kloa co ns ist of   increasin an decr easi ng   incom ing   wor kl oad f ro m   the  us ers This  w orkl oad   is  desc ribed   as  un pr e di ct able  becau se the  var ia ti ons  occur   rand om l y.  As  res ult,  cl oud  pro vid e rs  have  to  deal  with   th un st ru ct ured  a nd  un plan ned  pro visio ni ng  of   resou rces  t m eet   the  cha ngin requirem ents.  Acc ur at e   predict io is   the  m ai chall eng e   to   obta in ing   t he  scal ing   requir e m ents   for  re so urces  for  a un pr e dicte wor klo a d.   T ac hieve  acc ur at resu lt s,  const an t   ob s er vation o f t he  w orkl oad is re qu i red f or e xam ple, u np re dicta ble tra ff ic ,  for ecast in et c       3.4.   Continu ousl y Ch anging  W or kload   Evaluation Warning : The document was created with Spire.PDF for Python.
                          IS S N :   2088 - 8708   In t J  Elec  &  C om En g,   V ol.  8 , N o.   6 Dece m ber  2 01 8   :   5359   -   5370   5362   The  resou rce  ut il iz ation   m ay   be  m axi m iz ed  or   m ini m iz ed  ov e ti m e,  and  the  w orkl oad   m ay   chan ge   con ti nu ously Fo m any   appl ic at ion s,  the re   m ay   be  lon g - te rm   chan ges   in  the  w orkl oad.  c onti nuously   changin w ork load  ca be  co ns ide red  as  a   c on sta nt  escal at ion   or  decli nation  of  the   res ource   util iz at ion.  T he  el ast ic ity  of   the  cl oud  e na bles  the  pro vi sion i ng   or   de com m issi on ing  o res ources   fo c on ti nuously     changin g w ork load.     3.5.   Once - in - a - li fe time W orkloa d   The  peak   w ork load  util iz at ion   m ay   occu on l on ce  i li fe tim wh en  the  resou rces  are  di stribu te equ al ly In   su c s pecial   ca se,  the  res ourc pro visio ning   an deco m m i ssion i n can   oft en  be  m anu al   or   dynam ic  task at a know n po i nt  in  tim e.       4.   PREDI CTIO N MEC HANI SM   To  pr e dict  the   incom ing   wor klo a a nd  to   identify   t he  work l oad  ty pe,   t he   us e requests   ha ve  to   be   analy zed.  A analy sis  of  the   histo rical   data base  is  al s ne eded  to  m ee t he  resou rce  re qu i rem ents  pr iori Ba sed  on  t he  use re quest an their  nee a na ly sis  are  cons idere f or   host ed  ap plica ti on.   Fig ure   s how the  proce dure  of  predict io at   ti m t - a nd  inte rval   t.  The   previ ou s   pe rio for  interval  (t - 1)   a nd  the  li ve   pe ri o f or   interval  are  obser ve for  nu m ber   of  act ive  us e rs.   T he  r eso ur ce  re quir e m ents  fo the   ob se rv e pe riod   are   m on it or ed,   c ol le ct ed,   an ent ered   int the  hi storical   databa se  after  the  pro cedure.  Ba se on   t he  data bas e,  the   work l oa for  tim intervals  t - 1   an are  cal culat ed,   an pr e dicti on   m eth ods  are  a pp li ed  to  determ ine  the   work l oa f or t he next  pe rio d (t+1) .           Figure  2.     T he Fl ow of t he  P r edict ion  M odel   Evaluation Warning : The document was created with Spire.PDF for Python.
In t J  Elec  &  C om En g     IS S N: 20 88 - 8708       Predict ion B ase Eff ic ie nt Re so urc e Pr ovisi on i ng an d Its I mpact  on Qo   ( La ta J  Ga dhavi )   5363   As  show in  the  ab ov Fi g ure   2,   pre dicti on   of   work l oa for  the  res ourc dem and is  descr i bed   in  diff e rent   interval.   F or  ti m interval   t 1 th m ean  CPU,  RAM  w orkl oa d,   a nd n um ber  o f   act ive u ser s ar cal culat ed  as  fo ll ows:       α 1 ( c pu ) = CPU   Wor kload   Me an   at   th e   in t er va l   t 1   β 1 ( R A M ) = RAM   W orkl oad   Me a n   at   th e   in t er val   t 1   γ 1 ( a c tive   use r ) = Me a n     num be r   of   act iv e   user s   at   t ime   t 1     λ 1 = Fo r  wh ole sce na rio  at  ti m e t - 1   (1)      Fo r  ti m e interval   t , th e m ean CPU ,  RAM  w orkloa d,  a nd  num ber  o act i ve users  are  calc ul at ed  as foll ow s:     α ( c pu ) = Me a n   of   C PU   W orkl oad   at   ti me   t   β ( R AM ) = Me a n   of   RAM   Wor k loa d   at   t ime   t   γ ( a c t ive   u ser ) = Me a n   of   numb er   of   ac t iv e   user s   at   ti me   t     λ = Fo r wh ole s cenario  a t time  t   (2)     To  c onside th e wor klo a at  t he  init ia l l evel,  a pseu do - c od e  is d esc rib e i n Alg ori thm  1 .     Algori th m  1 I nitial Le vel     Inp ut: N um ber  of r e quest s   Re qu irem ent: C al culat ion   of  the inter  ar riva l t i m e fo t he p erio ds   - a nd    per i od   1.        Be gi n.   2.          M on it or  acti ve user  r e quest   3.               Wh il (tim e inter val is  - 1).   4.                    Ca lc ula te  the inter  ar rival tim e o act i ve user s.   5.                         For  ( each inte a rr iv al  tim e in p erio - 1).   6.                             M on it or  w orkloa   7.                             Ca lc ulate  m ean v al ue  λ 1   for week 1.   8.                         For  ( each inte a rr iv al  tim e o   pe rio d) .   9.                             M on it or t he wor klo a d.     10.                             Ca lc ulate  the m ea n value  λ   f or w e ek2.   11.                         En d for   12.                         En d for   13.         E nd.       Now  f or  each  week   of   t he  m on t h,   cal culat e   the  m ean  value  of   the  w orkl oad   a nd  predic fo ne xt  wee base on curre nt a nd  the h ist or ic al   da ta base.  T hus,   the pre dicte d v al ue  f or ti m + n  is:       λ +   n =   λ 1 + λ + λ + 1 + + λ + ( n 1 )         (3)       λ +   n = λ + ( n 1 ) 1         (4)                                                                                                                                                                                                            (3)  a nd  ( 4)  ex pr ess   the  su m m at ion   of  the   pr e vious  w ork loa t pr e dict  the  re sour ce  dem and f or  t he  nex per i od. T he ps eudo - co de fo t he wor klo a d pre dicti on  is  pres ented  i n Alg or i thm  2 .     Algori th m  2 : Workl oad Pre diction     Inp ut: N um ber  of r e quest s   Re qu irem ent: C al culat ion   of  the m ean CPU ,  RAM, a nd  num ber  o act i ve users  at ti m e in te rv al   - a nd  per i od    1.     Be gin .   2.          M on it or  t he nu m ber   of act ive  us er  r e quest s at tim - a nd p e rio .   3.          Ca lc ulate           λ 1   an   λ   //   by  us in g ( 1) an d (2).   4.              F or eac h w eek,  cal c ulate  the m ean workl oad.   5.                 P re dict t he  workloa d for  the n e xt  week  + n ,              λ + ( n 1 ) 1 .   6.              E nd fo r.   7.         E nd.     Evaluation Warning : The document was created with Spire.PDF for Python.
                          IS S N :   2088 - 8708   In t J  Elec  &  C om En g,   V ol.  8 , N o.   6 Dece m ber  2 01 8   :   5359   -   5370   5364   To  al locat res ources t the  jo b,  i this se ct io n nu m ber   of   jo ide ntific at ion are c onsidere d for  var i ous r e gi on s   as sho wn in t he  Fig ure . 3.            Figure  3.   The   Flow o t he  Re so urce  Allocat i on         Determ inati on   of the  num ber  o f   re qu e sts:   Jo b p r of il e:     n i t j j J , . . . . . . , , whe re i=1 ...n, an t J is  num ber  of  j obs  f or  t he c urren t t im e     L L oc at i on A I P a dd D D a t e T T i m e j , , , 1     Let   ,....... , , 3 2 1 T T T T   tim e series      . . . . , 2 1 d d D Date o f req uest  arr i ved     n n i i c r c r L , , . . . . . . . . , , whe re  L is t he  locat ion o t he a rr ive d re qu est     c r , Re gion a nd coun t ry, r e sp ect i vely                     Total  num ber   of jo re quest from  o ne regi on= R   R Nu m ber   of r e quest per re gion                                                                           ( 5)       Evaluation Warning : The document was created with Spire.PDF for Python.
In t J  Elec  &  C om En g     IS S N: 20 88 - 8708       Predict ion B ase Eff ic ie nt Re so urc e Pr ovisi on i ng an d Its I mpact  on Qo   ( La ta J  Ga dhavi )   5365       Figure  4.  N umber  of Re qu est s b y R e gion       Figure  s hows  the num ber  of  j ob  requests  by  r egi on   (R) . D i ff e ren pr e dicti on  m od el s a re  app li ed  for  the  res ource  r equ i rem ents  i va rio us   pe ri od s inclu ding   the  first  an second  m ov ing   a ver a ge  (FSM A),   weig hted  m ov i ng   ave rag e   ( W MA),   a nd  e xpon e ntial   m ov ing   a ver a ge  ( EMA)  m od el [11 ] The  histor ic al   data   and   pr e dicti on  m od el   ou tp ut  are  us e as  in pu data,  w hich  a re  trai ne to  i m pr ov the  acc ur acy   of  the  re so urce  pro vision i ng  st rategy.  T he  pre dicti on   m od el   us es  t he  ou t pu t   of  the  pr edict e value  t provi sion   th res ou rces.  At  the  sam t i m e,  pr ovisi one res ources  res ults  will   be  sto red   in  t he  histo rical   database  reposit ory   for  fu t ur e   pr e dicti on.  Th pr e dicti on   is   done  by  ap pl yi ng   va rio us   m ov ing   ave rage  m et ho ds In   par ti cula r,   the  m ov i ng  aver a ge  m et ho ds   FSM an WMA  are  recom m end ed  to  c on si der   non - fl uctuati ons  in  the  short - te rm   dem and ,   as  sh ow in  ou pr e vious  wor [ 12 ] A on t ology - based   dy nam ic   reso ur ce  prov isi on i ng  f or   pu blic  cl oud  wa s   i m ple m ented  in the  pre vious  work [ 13] .     First   and Sec ond M ovin Ave ra ge  (FSM A)   meth od:   In   t he  fir st  m o ving  a ver a ge  m et ho d,  the  i th   us er   re qu e st  f or   res ource  at   tim interval  is  m easur ed ,   and N i s c on si der e as  a m oving  a ve rag e  p e rio f or ti m e in te rv al  t [ 9], as   descr i bed in  ( 6):     + 1       = (   ( ) + 1   ( ) + +     ( ) )               (6)     Her e is  co nsi der e as   the   ori gin al   val ue  f or  each   per io d,  an t   is  re ga rded  as   the   cu rr e nt  per io d.  I ( 6),  F t+1   denote   the  fir st  m ov in ave ra ge  val ue  f or   t he   i th   us er  at   ti m t+ 1.   The  r e so urce  require m ent  of   the  i th   us er  at   tim e t+ δ  can be predict ed  as:   + ( i ) = ( i ) +  ( )      (7)     wh e re  δ  is  the  pr e dicte ti m seq uen ce  num ber,  an +   de no t es  the  pr e dicte value  at   ti m e   + as  s ho w in (7). T he n,  t o p red ic t t he     +   va lue, the  sec ond m ov ing  a ve ra ge va lue c an  be m easur ed by  app ly in g (8):       + 1 =  + 1   ( ) +    ( ) + +  (  1 )   ( )   (8)            In (7) ,    ( )   and  ( )   are calc ulate d b y usin g (9) a nd  (10):   ( ) = 2 + 1   ( ) + 1   ( )   ( 9 )       ( ) = 2  + 1   ( ) + 1   ( )                     1                                 ( 10 )     Evaluation Warning : The document was created with Spire.PDF for Python.
                          IS S N :   2088 - 8708   In t J  Elec  &  C om En g,   V ol.  8 , N o.   6 Dece m ber  2 01 8   :   5359   -   5370   5366   B ased  on the a bove  e quat io n,   the total   nu m ber   of   res ource  r equ i rem ents f or  n user s  is m e asur e a s:               + =                         ( 11 )     The  total   num ber   of   res ource requested  by  al the  us e rs  at   tim +    can  be   cal culat ed,   a nd   t he  predict e value  at   tim per i od    and   +   for  f or   al us e r can  be  deter m ined  by  us i ng  eq uatio n ( 11) Furthe r,   th e   resou rces  are   a ll ocated  to  t he  us ers   acco r ding  to  t heir  act ua need   a nd  ba sed  on   t he  pr e dicte value,  a nd   t he  resu lt s a re c ompare d.      Wei gh te M ovi ng Aver ag e   Me thod ( WMA) :   Wh e reas  the  first  an seco nd   m ov in ave ra ge  m od el   al locat es  the  sam e   weig ht  to  each   el e m ent  of  the  m ov ing   a ve rag databa se the  wei ghte m ov in a ver a ge  m od el   al lows   a ny  weig ht   to  be  placed  on   eac el e m ent,  and   t h s um   of   al weig hts  eq ua ls  [ 11 ] He r e,  the  act ive  use re quest a nd   t he  util iz ation   of  resou rces  for p erio F    are  d e scribe in   ( 12):     F     =   W   A +   W + 1   A ( + 1 ) + . W   A                             ( 12 )     Wh e re  F t   =   the  for ecast   for  t he  co m ing  p e rio d,   n=the t otal n um ber  o f pe rio ds i t he  f oreca s t,   A i =   the act ual  occurre nce  f or   the p e rio t - i,   Her e ,   W   = 1 = 1    =     ( (          ) (          ) )                     ( 1 3 )     Exp on e ntial M ovin Aver age  Met hod(EMA) :   The  e xpone ntial   m ov in a ve rag (EM A)   m et hod  is  m ai nly  log ic al   an i the  easi est   a ppr oach   f or   pr e dicti ng   fluc tuati on i the  sh ort - te rm   dem and T his  m e thod  is  eff ect i ve   for  both  s hor t - te rm   and   tim e - series   pr e dict ion.  As   each  ne pie ce  of   data  is  a dd e d,   t he  old e st  ob se rv at io is  dr op pe d,   an ne f or ec ast   is  cal culat ed   [ 14 ] The  pr e dicte values  a re  cal culat ed  by  us i ng   t he  sm oo thi ng   c onsta nt  α The  EM m eth od  is  expresse as:       F = F 1 +   α   ( A 1 F 1 )     F =   α   A 1 )       + ( 1   α   )   F 1               ( 14 )     whe re   F   is   t he   exp onen t ia ll y   smoot he d   fore cast   for   prev ious   p er iod   t   F 1   is   t he  e xponentia ll y sm oo thed for ecast  m ade f or      the  prio r   per i od,      A 1 = The   a ctua l   dema nd   in   t he   p ri or   p er iod ,                                                            α = The   desir ed   re spon se   ra t e   or   s mo othi ng   c ons t an t , 0 < α < 1   This  m e tho gi ves  to  hig he weig ht  to  the  la te m easur e value  a nd   lowe weig ht  to   the  earli er  m easur ed   val ue The   EMA   m et ho is  a ble   to  res pond  qu ic kly  to  fluct ua ti on in   the  s hort - te rm   dem and.    If   request  f ro m   act ive  us er  is  great er  than  t he  def i ned   per i od  then  it   will   be   con si der e in  the  long - te rm   per i od   and   if  it   is  le ss   than  the it   w il be  con si dered  as  s hort  te rm   per iod Lo ng - te rm   and   short - te rm   per iod ar e   def i ned as L a nd S t ,  r es pecti ve ly       5.   NUMBE R  OF  J OB  R EQ UE ST REQ UI RE MENT  FO R RESO URCES   Her e the  nu m ber of   re qu es ts  fr om   var io us  reg i on a re  cal culat ed,   as  sh ow in  (1)  and   ( 2) T he   nu m ber   of   a rr i ved  us e requ e sts  in  the  de plo ye cl oud  for   ed ucati on  is  e valuated as  show i ou pre vious   work,  a nd  the  avail abili ty   of   resou rces  in   th sp eci fie regi on is   dete rm ined.  T he  a vaila ble  res ources   ar e   gen e rated   an m on it or ed  by  us in t he  c omm ercial   Am az on  EC2   cl ou pla tfo rm   [1 5,  16,  17 ] .   The   c apab il it of   t he  avail a ble  VMs  is  cal cu la te d;  then,   t he   nu m ber of   jo re quest are  al locat ed  to  th resou rces.  O nce  th e   nu m ber of  jo bs   are  al locat e to  the  VMs,  the  current  loa is  cal culat ed.  If   the  VM  bec om es  ov er -   or   unde r - loa de d,   res ourc es are a uto m at i cal ly  ad de d or   release a nec essary. T he w hole  pr ocedur e  i s d esc ribe d bel ow.     Let  V M= {VM 1 ,V M 2 ,V M 3 , ,V M N be  a set  of N v i rtual m achines  and      Task ( nu m ber   of jo re quest s = {t as k1, tas k2, tas k3, …,  K } of K t ask  to be  regular a n d processe i n V M.    Evaluation Warning : The document was created with Spire.PDF for Python.
In t J  Elec  &  C om En g     IS S N: 20 88 - 8708       Predict ion B ase Eff ic ie nt Re so urc e Pr ovisi on i ng an d Its I mpact  on Qo   ( La ta J  Ga dhavi )   5367   Her e the  fitne ss  of   the  num ber   of   r eq uests  (i)  m a be  determ ined  by  the  capaci ty   of   V M j,  wh ic is   cal culat ed by u sing  ( 15):         (15)     j ob  ty pe  le ngth   sh ows  the  ho m any  ta sk are  subm i tt ed  on   VM j   with  the  cal culat ion   of   ca pacit of   sp eci fic   VM to ha ndle   su bm it te j obs.  Th e  capacit y o the  V M i s  m e asur e d by a pp l yi ng   (16) :       (16)     wh e re  Nu m _pr oc  is  the   num ber   of  pr ocess or s   in  th VM N um _MIP i nd ic at es  t he  num ber   of  MIP S,  a nd   B W _VM  re pre sents  band w idt h of t he VM.       (17)     In  ( 17),   t he  input  file   le ng th  is   al so   con si der e to  determ ine  the  le ng th  of   t he  job   befor e xecu ti on.  Tas ks  are  assigne t the  v irt ual m achine b us in t he m os t eff ect ive  fitness  value  fr om  the  (17).    Loa Ca lc ulati on Wh e ta sks   are  subm itte to  the  be neath  loa ded   VM,  the  present  work   of   al offe re V M   will   be  m easure by  victi m izati on   of  knowl edg wh ic is  receive from   the  database   [ 18] T cal cul at the  dev ia ti ons i l oad v a riance  on VM s,  t he foll ow i ng stan dard  d e viati on   (SD ( 18)  is u s ed:       (18)     wh e re  X is t he  pro ces sin ti m e of the  V M,  a s d esc ribe i ( 19):       (19)     The n,  t he  m ea n processi ng ti m es f or all  V M s ar e cal c ulate d by ap plyi ng  ( 20):       (20)     If   the  S of  th loade VM  is  s m al le than  or   e qu al   to  the   m ean,  then  th e   syst e m   is  in  balance sta te On   the  ot her   ha nd,  if  the  SD   is  high er  than  the  m e an,   the the  syst e m   is   in  i m b al ance,  an th auto - scal ing   m echan ism   fo resou rce  pro visio ning  will   be  ap plied.  He re,  on VM  is  con si de red   to  be  capa ble  of   serv i ng  50  re quest s   at   a   ti m e T hus,  w hen  t he  num ber   of  requests  >=   50,   the scal up  ne in sta nc an m igrate  reque sts  on   new   i nst ance.  It  is  r efr es hing  ar riv al   of   re qu e st  for  eve ry  m inu te Ba se on   t he  pr e dicte val ue the   res ource are   scal ed   up   or  dow acc ordin t the   pr e dicte dem and .   The   pse ud o - c od e   f or   scal ing   up a nd  dow is s how n i n Alg or it hm  3 .       Evaluation Warning : The document was created with Spire.PDF for Python.
                          IS S N :   2088 - 8708   In t J  Elec  &  C om En g,   V ol.  8 , N o.   6 Dece m ber  2 01 8   :   5359   -   5370   5368   Algori th m  3:  Scaling  up  an d dow n __ ____ ______ ______ ______ ______ ______                      Be gin .          M on it or     λ 1    and  λ   for  the  pre vious a nd     t he  curre nt ti m e,  r especti vely .          Pr e dict w ork load    λ +   n   at  ti m +   n .          Let  R= r i   ᴜ r i+ 1    r i+ 2    r i +3 .....  ᴜ r m   befor e  scali ng, wh ere R  is  the set  of  virtu al   resour ces .             L et     λ +   n = λ + ( n 1 ) 1 = x .          Let   λ + ( n 1 ) = y .                    If    >   y , t he n   //  the  wor klo a i ncr ease s.                             A dd r i nto t he  (scale u t he vi rtual r e source );                             el se if    <     , th e //  the   work l oa d decr eases.                            Re m ov e extra r  from  R (s cal e do wn the  virt ual re source );                   el se.                             Re fr es t he  re sou rces.     En d.       6.   RESU LT S  O F THE Q oS  METRI CS   F OR RES OUR CE A LL OCA TION   Fig ure  sho w the   eff ic ie nt  resou rce  pro vi sion i ng   with  t he  us of  the  pr e dicti on   m od el   achieve m axi m u m   CP util iz at ion   com par ed  wit the  existi ng   (conv e ntio nal)  cl oud.   Her e the  aver a ge   CPU   util iz at ion   is  ob ta ined  for  50  requests  on  the   conven ti on al   cl oud  an 10 requests   on  the   eff ic ie nt  cl oud.  The   resu lt in dicat that  the  effi ci ent  cl ou d   use m ini m u m   nu m ber   of  instances  but  prov i des  m a xim u m   util iz at ion .   Fig ure   s hows   that  an  e ff ic ie nt   respo ns ti m is  obta ined  f or   50  re quest s   on  the  c onve ntion al   cl oud  an 10 request on  the   eff ic ie nt  cl oud.  Fig ure   i nd i cat es  that  eff ic ie nt  resour ce  pro visio ning  wit the   us of  the  pr e dicti on   m od el   achieves  the  m axi m u m   through pu com par ed  with  the  e xisti ng   (c onve ntion al )   cl oud.   Her e th aver a ge  t hro ughput  is  m easur e for  50  re quest s   on  t he  c onve ntio nal  cl oud  an 100  requests  on  the   ef fici en cl oud.  T he  r esults  s how  t ha the  e ff ic ie nt   cl oud  use a   m ini m u m   nu m ber  of  i ns ta nc es  but  pro vid es t he  m axim u m  thr oughput.           Figure  6 .   A verage CP U uti li zat ion   for 50 re qu e sts o t he  c onve ntion al  and  100 re qu est s   on the e ff ic ie nt cloud           Figure   7 .   Re spon s e ti m e fo r 5 0 req uests  on t he  c onve ntio na l cl oud  a nd 10 0 req uests  on t he  e ff ic ie nt cl oud   Evaluation Warning : The document was created with Spire.PDF for Python.