cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yitao Jiang <willier...@gmail.com>
Subject Re: Help In Launch instance Schedule policy
Date Wed, 27 Nov 2013 08:40:15 GMT
Hi ,

I work with 4.1.0.And now i find out how it working. The two classes only
override the needed methods, and other logics are handled by method in
FirstFit class. The plan method of FirstFit class call different method
according algorithms configured by global configuration.



Thanks,

Yitao


2013/11/27 Prachi Damle <Prachi.Damle@citrix.com>

> Hi Yitao,
>
> Which version of CloudStack are you working with? That will determine the
> configuration needed.
>
> The UserDispersing and UserConcentrated extend the FirstFit and just
> override the methods that decide the order of clusters to be considered for
> searching the resources, based on their respective heuristics.
>
> Prachi
>
> > On Nov 26, 2013, at 10:04 PM, "Yitao Jiang" <willierjyt@gmail.com>
> wrote:
> >
> > Hi, Prachi,
> >
> > I followed the directions of above link , and configure
> > vm.allocation.algorithm
> > to userconcentratedpod_random. But it seems does't work.
> > Through the codes about the deployment plan, i found that the algorithms
> of
> > UserDispersingPlanner
> > and UserConcentratedPodPlanner all extends FirstFitPlanner, but neither
> > implement the method of
> > plan, which actually works for deciding where to deploy a vm, so no
> matter
> > what algorithms i used,
> > it all use the algorithm of firstfit algorithm, cause it implement the
> plan
> > method.
> > Is this a bug or developer should implement this method, or did i miss
> > something in the global configuration ?
> >
> >
> >
> > 2013/11/23 Prachi Damle <Prachi.Damle@citrix.com>
> >
> >> Hi Yitao,
> >>
> >> CloudStack scheduling policies are implemented by the DeploymentPlanner
> >> and HostAllocator/StoragePoolAllocator components.
> >> If you want to take a look at the source code of these components, this
> >> will tell you where to look:
> >>
> https://cwiki.apache.org/confluence/display/CLOUDSTACK/VM+Deployment+Planning+and+Resource+Allocation
> >>
> >> These components implement the Adapter  interface of CloudStack - so you
> >> can provide your own implementation and plug it in to be used for VM
> >> deployment. Let me know if you face any questions on this.
> >>
> >> Thanks,
> >> Prachi
> >> -----Original Message-----
> >> From: Yitao Jiang [mailto:willierjyt@gmail.com]
> >> Sent: Thursday, November 21, 2013 10:11 PM
> >> To: dev@cloudstack.apache.org
> >> Subject: Help In Launch instance Schedule policy
> >>
> >> Hi,
> >>
> >> I was looking for some help in launching instance using some schedule
> >> policies.
> >> I know that Openstack allow developers write their own policy .So I
> guess
> >> cloudstack support maybe that .Since i am just started developing it ,
> i'll
> >> be really appreciate someone can tell me where i can write it  using
> some
> >> policy, such as according to the weight of each host, or RoundRobin.
> >> --
> >>
> >> Best regards,
> >>
> >> Yitao Jiang
> >
> >
> >
> > --
> >
> > Best regards,
> >
> > Yitao Jiang
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message