Re: [ClusterLabs] a newbie --question

2015-09-28 Thread ‪H Yavari‬ ‪
Hi ,
Sorry but I'm a little confused.I should create a cluster with 4 node, how each 
node will be configured? 
I should note this, that end users only work with App Z. App Y only is in 
communication with App Z.So I should define one floating IP on all nodes? or on 
2 App Z nodes?
I should configure all services that related to App Z and App Y on all nodes?
For example App Z is Apache. I should add Apache to resources on all nodes? or 
only to nodes that run this service? 

Thanks for your reply.
Regards.

  From: Michael Schwartzkopff 
Am Dienstag, 15. September 2015, 13:38:59 schrieb H Yavari‬:


> Hi,
> Thanks for reply.
> The problem is Compute resource, the appY and appZ can't run on same Server.
> It is possible ?
> Regards,

As far as I understood:

You have the applications Y and Z and the servers A, B, C and D.

The applications Y and Z cannot run on the same node.



Solution    1:
Make two clusters M (from node A and B) and Cluster N (from nodes C and D). 
Cluster M runs the application Y and Cluster N run the application Z.

Solution 2:
Make one big cluster from all four nodes and configure constraints that the 
applications will not run on the same node. Side note: Basically you only need 
three nodes in this scenario:
- application Y running on node A
- application Z running on node B
- in case of a failure of A or B the cluster starts the failed application on 
node C


Mit freundlichen Grüßen,

Michael Schwartzkopff

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64, +49 (162) 165 0044
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein

  ___
Users mailing list: Users@clusterlabs.org
http://clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


Re: [ClusterLabs] a newbie --question

2015-09-15 Thread Simon Lawrence

On 15/09/15 14:22, ‪H Yavari‬ ‪ wrote:

Hi,

I'm newbie to pacemaker. So I don't know about all features.
My question : I have 4 servers, 2 servers are appY(active and standby) 
and 2 servers are appZ (active and standby).


I want implement HA with Pacemaker, So I can do this for AppY and AppZ 
now (with following the tutorials). But my issue is that my servers 
must be pair. I mean :

Pair#1 :AppY (active) + AppZ(active)
and
Pair#2 :AppY(standby) + AppZ(standby)
So when any servers in pair#1 is failed, other pair goes active.

it is possible ? How can I achieve this with configurations?

Thanks.

Regards,
H.Yavari




You can use 'location constraints' within Pacemaker to define preferred 
nodes for resources' (applications in your case) to run, and also to 
define which nodes a resource cannot run on. So, yes you can do what you 
want.



___
Users mailing list: Users@clusterlabs.org
http://clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


Re: [ClusterLabs] a newbie --question

2015-09-15 Thread ‪H Yavari‬ ‪

I should note this: AppY on Node A works only with AppZ on Node B, and AppY on 
Node C works only with AppZ on Node D.(Some hardware restrictions)

Regards,


  From: Michael Schwartzkopff 
 
   
Am Dienstag, 15. September 2015, 13:38:59 schrieb H Yavari‬:


> Hi,
> Thanks for reply.
> The problem is Compute resource, the appY and appZ can't run on same Server.
> It is possible ?
> Regards,

As far as I understood:

You have the applications Y and Z and the servers A, B, C and D.

The applications Y and Z cannot run on the same node.



Solution    1:
Make two clusters M (from node A and B) and Cluster N (from nodes C and D). 
Cluster M runs the application Y and Cluster N run the application Z.

Solution 2:
Make one big cluster from all four nodes and configure constraints that the 
applications will not run on the same node. Side note: Basically you only need 
three nodes in this scenario:
- application Y running on node A
- application Z running on node B
- in case of a failure of A or B the cluster starts the failed application on 
node C


Mit freundlichen Grüßen,

Michael Schwartzkopff

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64, +49 (162) 165 0044
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein

  ___
Users mailing list: Users@clusterlabs.org
http://clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


Re: [ClusterLabs] a newbie --question

2015-09-15 Thread Michael Schwartzkopff
Am Dienstag, 15. September 2015, 13:57:36 schrieb H Yavari‬:
> Hi,
> Thanks a lot. But can you give me some hints about configuration?

http://clusterlabs.org/doc/en-US/Pacemaker/1.1/html/Clusters_from_Scratch/


Mit freundlichen Grüßen,

Michael Schwartzkopff

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64, +49 (162) 165 0044
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein

signature.asc
Description: This is a digitally signed message part.
___
Users mailing list: Users@clusterlabs.org
http://clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


Re: [ClusterLabs] a newbie --question

2015-09-15 Thread Michael Schwartzkopff
Am Dienstag, 15. September 2015, 13:38:59 schrieb H Yavari‬:
> Hi,
> Thanks for reply.
> The problem is Compute resource, the appY and appZ can't run on same Server.
> It is possible ?
> Regards,

As far as I understood:

You have the applications Y and Z and the servers A, B, C and D.

The applications Y and Z cannot run on the same node.



Solution1:
Make two clusters M (from node A and B) and Cluster N (from nodes C and D). 
Cluster M runs the application Y and Cluster N run the application Z.

Solution 2:
Make one big cluster from all four nodes and configure constraints that the 
applications will not run on the same node. Side note: Basically you only need 
three nodes in this scenario:
- application Y running on node A
- application Z running on node B
- in case of a failure of A or B the cluster starts the failed application on 
node C


Mit freundlichen Grüßen,

Michael Schwartzkopff

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64, +49 (162) 165 0044
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein

signature.asc
Description: This is a digitally signed message part.
___
Users mailing list: Users@clusterlabs.org
http://clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


Re: [ClusterLabs] a newbie --question

2015-09-15 Thread ‪H Yavari‬ ‪
Hi,
Thanks a lot. But can you give me some hints about configuration?
Regards,
  From: Andrei Borzenkov 
 To: hyav...@rocketmail.com; Cluster Labs - All topics related to open-source 
clustering welcomed  

   
On Tue, Sep 15, 2015 at 4:38 PM,   wrote:


> Hi,
>
> Thanks for reply.
> The problem is Compute resource, the appY and appZ can't run on same Server.
>
> It is possible ?
>

Yes; set location constraint that appY cannot run on the same node as
appZ (and vice versa). Alternatively you can set location constraints
that restrict appY and appZ to specific set of servers.


  ___
Users mailing list: Users@clusterlabs.org
http://clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


Re: [ClusterLabs] a newbie --question

2015-09-15 Thread Andrei Borzenkov
On Tue, Sep 15, 2015 at 4:38 PM,   wrote:
> Hi,
>
> Thanks for reply.
> The problem is Compute resource, the appY and appZ can't run on same Server.
>
> It is possible ?
>

Yes; set location constraint that appY cannot run on the same node as
appZ (and vice versa). Alternatively you can set location constraints
that restrict appY and appZ to specific set of servers.

___
Users mailing list: Users@clusterlabs.org
http://clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


Re: [ClusterLabs] a newbie --question

2015-09-15 Thread ‪H Yavari‬ ‪
Hi,
Thanks for reply. 
The problem is Compute resource, the appY and appZ can't run on same Server.
It is possible ?
Regards,

  From: Kai Dupke 
 
   
On 09/15/2015 07:22 AM, ‪H Yavari‬ ‪ wrote:


> But my issue is that my servers must be pair.

May I kindly ask to explain what is the reason is to request pairs?

Is it because the systems belong to dedicated projects?

Is it because the the apps shall not run on one node because of compute
resource constrains?

Is it because the nodes are separated by distance?

Usually you can get a much higher availability with 4 nodes available if
you allow all apps to run on all nodes, but usually have the apps not on
the same node. This rule allow that up to 3 of the 4 nodes get down, but
the apps are still available (even with less performance, but available).

greetings
Kai Dupke
Senior Product Manager
Server Product Line
-- 
Sell not virtue to purchase wealth, nor liberty to purchase power.
Phone:  +49-(0)5102-9310828    Mail: kdu...@suse.com
Mobile: +49-(0)173-5876766      WWW:  www.suse.com

SUSE Linux GmbH - Maxfeldstr. 5 - 90409 Nuernberg (Germany)
GF:Felix Imendörffer,Jane Smithard,Graham Norton,HRB 21284 (AG Nürnberg)


  ___
Users mailing list: Users@clusterlabs.org
http://clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


Re: [ClusterLabs] a newbie --question

2015-09-15 Thread Kai Dupke
On 09/15/2015 07:22 AM, ‪H Yavari‬ ‪ wrote:
> But my issue is that my servers must be pair.

May I kindly ask to explain what is the reason is to request pairs?

Is it because the systems belong to dedicated projects?

Is it because the the apps shall not run on one node because of compute
resource constrains?

Is it because the nodes are separated by distance?

Usually you can get a much higher availability with 4 nodes available if
you allow all apps to run on all nodes, but usually have the apps not on
the same node. This rule allow that up to 3 of the 4 nodes get down, but
the apps are still available (even with less performance, but available).

greetings
Kai Dupke
Senior Product Manager
Server Product Line
-- 
Sell not virtue to purchase wealth, nor liberty to purchase power.
Phone:  +49-(0)5102-9310828 Mail: kdu...@suse.com
Mobile: +49-(0)173-5876766  WWW:  www.suse.com

SUSE Linux GmbH - Maxfeldstr. 5 - 90409 Nuernberg (Germany)
GF:Felix Imendörffer,Jane Smithard,Graham Norton,HRB 21284 (AG Nürnberg)

___
Users mailing list: Users@clusterlabs.org
http://clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org