--
You received this message because you are subscribed to the Google Groups "brooklyn-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brooklyn-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Jose,
I'm not sure if Brooklyn can do *today* what you are suggesting - perhaps another of the Brooklyn team can confirm if this is a feature that is implemented - but it is absolutely a feature that Brooklyn should have, and could have! It is not unknown for a cloud provider's zone to fail, and therefore a policy which can redeploy to another cloud provider is a worthwhile thing to have. Brooklyn's framework is certainly capable of providing this, even if that exact policy has not been written yet.
Rusty,
As you point out, this is a very similar case to the replacer policy, which stops and starts entities in one location. It's feasible to have a policy that stops in one location and starts in another.
Richard.
On 11 December 2013 14:15, Moln�r Mih�ly L�szl� <laci...@gmail.com> wrote:
So for this you have to write your own, but Richard or others will fix me if I told something wrong :)But I think restart and replace misbehaving entities is the supported by policies included in brooklyn in HA policy:Hi Jose!You can write a policy which deletes the entity at that provider and creates a new at another location if you want.
http://brooklyncentral.github.io/use/api/brooklyn/policy/ha/ServiceReplacer.html
http://brooklyncentral.github.io/use/api/brooklyn/policy/ha/ServiceRestarter.html
Rusty
On Wed, Dec 11, 2013 at 2:44 PM, Jose Carrasco <kiu...@gmail.com> wrote:
Hello Richard.
Thanks a lot for your reply, and of course I was suspect that the policies �allow managed a entity and they do not allow create a new instance, but I was sure and I understand more Brooklyn now.
One more.When a application is deployed you must indicate the location, a cloud provider (or localhost). So, when the application is launched then Brooklyn uses jclouds to deployed the child entities �(of the application) �in the indicated cloud provider. After, the polices are deployed which manage the application entities.�Thus, for example if a police P1 detect a incorrect behavior of a entity E1 which is deployed in a cloud provide CP1.�May it be possible this police P1 re-deployes this instance E1 in a new cloud provider CP2 ? or as you tell me the police have to call a effort to re-deploy the intance only. I konw Brooklyn is not create to this, however I hope understand more Brooklyn and its behavior.
Thanks a lot.
El mi�rcoles, 11 de diciembre de 2013 12:36:08 UTC+1, Richard Downer escribi�:
Jose,
Each entity has a set of effectors - effectors are basically "methods" which do something[1]. An application is a special case of entity, so the application too has effectors (methods).
You will normally find that an entity has "start" and "stop" effectors. Invoking the "start" effector will normally also start any child entities.
Therefore, when you execute "start" on the application, the application will also start its child entities - for example, a database and a web cluster.Then the web cluster will also start its child entities - a load balancer and a dynamic cluster. Then the dynamic cluster will start its child entities - a number of web servers. So the "start" instruction has propagated right the way through the hierarchy of entities.
Policies are a different thing. A policy will be examining an entity by reading its sensors. A policy will then take decisions, and will invoke effectors to make something happen.
Take the RestarterPolicy, for example. You attach this to an entity - a web server for example. This policy reads the entity "state" sensor - if the sensor says that the web server has stopped (crashed), it will invoke the entity's "start" effector, to try and restart the node.
As another example, AutoScalerPolicy is attached to a cluster. It will be connected to a sensor that measures the load on the cluster. The policy will decide if the cluster is too large or too small, and will invoke the cluster's "resize" effector.
Hope this clears things up a bit, but please post back if you've any more questions.
Richard.
[1]Effector has a specific meaning in autonomic computing, which is a big influence on Brooklyn and an area in which some Brooklyn contributors are experts. I'm not an expert in autonomic computing, so I'm probably hugely oversimplifying the case and horrifying our experts with that statement :-)
On 11 December 2013 09:14, Jose Carrasco <kiu...@gmail.com> wrote:
Hello guys.
I have read the Brooklyn documentation and I do not understand how a entity is deployed.
A application is the responsible of provisioning start, configure and manage its�child entities, but how?
For example, does a entity define a method to deploy it which is called for its parent? Which is the difference between this method and a police?May I use a police to deploy (or provision) a entity, or a police allows managed a deployed entity only?
In summary, I do not understand how a entity es deployed.
Thanks a lot.
--To unsubscribe from this group and stop receiving emails from it, send an email to brooklyn-user...@googlegroups.com.
You received this message because you are subscribed to the Google Groups "brooklyn-users" group.
--
Richard Downer � Principal Engineer � Cloudsoft Corporation � http://www.cloudsoftcorp.comGitHub richardcloudsoft � Twitter @FrontierTown
--
You received this message because you are subscribed to the Google Groups "brooklyn-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brooklyn-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "brooklyn-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brooklyn-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
Richard Downer � Principal Engineer � Cloudsoft Corporation � http://www.cloudsoftcorp.comGitHub richardcloudsoft � Twitter @FrontierTown