Re: Load balancing ????

2002-02-13 Thread Robert Virkus

Hallo Mahesh,

find here more about clustering with orion:
http://kb.atlassian.com/content/orion/docs/http-clustering.html

Friday, February 01, 2002, 3:31:04 PM, you wrote:


MMK Dear Sir,
MMK Currently Iam working in a project which is using Orion server.This is for the 
first time Iam using this server.Can you please tell me how to do load balancing in 
Orion?Is load balancing
MMK possible in Orion?
MMK Waiting for your reply..
MMK regds
MMK Mahesh K
MMK ~~~
MMK Mahesh M Kagalkar
MMK Ionidea Enterprise Solutions pvt ltd.
MMK 38-40, Export Promotion
MMK IndustrialPark, Whitefield,
MMK Bangalore-560 066
MMK Voice : 8411366-71
MMK Fax : 8411391
MMK E-mail :   [EMAIL PROTECTED]
MMK  [EMAIL PROTECTED]
MMK   [EMAIL PROTECTED]
MMK ~~~



Mit freundlichen Grüßen,
  Robert Virkus
  Director Mobile Solutions

-- 
Robert Virkus
scaraboo GmbH
mobile Entertainment
Georg-Wulf-Str.4-6
28199 Bremen
Germany
phone  +49 - (0)421 - 59 67 549
fax+49 - (0)421 - 59 67 567
mobile +49 - (0)171 - 35 31 635
[EMAIL PROTECTED]
www.scaraboo.de
wap.scaraboo.de


Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene
Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung
reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten
Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung,
Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet
ist. Diese Nachricht ist ausschliesslich fuer den bezeichneten Adressaten
oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat
dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem
Absender der E-Mail in Verbindung zu setzen.

For legal and security reasons the information provided in this e-mail is
not legally binding. Upon request we would be pleased to provide you with a
legally binding confirmation in written form. Any form of unauthorised use,
publication, reproduction, copying or disclosure of the content of this
e-mail is not permitted. This message is exclusively for the person
addressed or their representative. If you are not the intended recipient of
this message and its contents, please notify the sender immediately.





Re: Load balancing ????

2002-02-13 Thread sachin mahajan



hello 
yes it is possible to do the load balancing in 
orion 
i am attching one html file just go through 
if.
In case u want more help just reply 
me.

bye
sachin

  - Original Message - 
  From: 
  Mahesh M 
  Kagalkar 
  To: Orion-Interest 
  Sent: Friday, February 01, 2002 8:01 
  PM
  Subject: Load balancing 
  
  Dear Sir,
  Currently Iam working in a project which is using 
  Orion server.This is for the first time Iam using this server.Can you please 
  tell me how to do load balancing in Orion?Is load balancing 
  possible in Orion?
  Waiting for your reply..
  regds
  Mahesh K
  ~~~Mahesh M 
  KagalkarIonidea Enterprise Solutions pvt ltd.38-40, Export 
  PromotionIndustrialPark, Whitefield,Bangalore-560 066Voice : 
  8411366-71Fax : 8411391E-mail : [EMAIL PROTECTED] 
  [EMAIL PROTECTED] 
  [EMAIL PROTECTED]~~~
Title: Orion HTTP Clustering








Orion HTTP Clustering and Load Distribution
  

$Revision: 1.0 $
  


This document will show you how to set up HTTP 
  Clustering and Load Distribution using the Orion application server. 



Note:




This article assumes that you are familiar with 
  how to use Orion. 
  




 

   

  
   
Introduction
  

 
Before you start, make sure you have downloaded and installed the following 
  software on at least 2 servers: 
 

  Java Development Kit (1.2 or later) 
  Orion (1.3.5 or later) 

You also need a network with operational multicast facilities.
If you don't have access to 2 servers but want to test this, you can install 
  2 Orions on the same box and make sure that they are not using the same ports 
  for the RMI server and for the HTTP server. 
This article has the following sections: 

  Introduction 
  Introduction to clustering 
  State replication 
  Cluster islands 
  Load distribution 
  Setting up a load distributed cluster with Orion 
  Step 1: Install your web-application on all the Orions 
in your cluster 
  Step 2: Set up your web-application to replicate its state 
  Step 3: Configure your cluster islands 
  Step 4: Tell the back-ends about the load balancer 
  Step 5: Starting and using the load balancer 
  Step 6: Start the back-ends 
  Step 7: Test it 
  To do 



  

  

   

If you already know about clustering and load distribution in 
  general and just want to know the steps to set it up for Orion, 
  you may skip to Setting up a load distributed 
  cluster with Orion. 
   
  
  

  

  

 



Introduction to clustering
  


For at least two reasons you often want your web site to be served by more 
  than one web server:

  Fault tolerance
  Handling larger loads than one server can survive

The act of letting two individual servers work together to perform one task 
  is often referred to as clustering. Clustering is an essential piece 
  to solving the needs for today's large websites.
 

  

  
   
State replication
  


Originally, HTTP was designed as a stateless protocol. Every request had all 
  the info the server needed to perform a certain task. Doing clustering for a 
  stateless system is trivial and only requires that a request can be handled 
  by more than one server that share the same document hierarchy. In today's world, 
  the picture is not as simple. The need for user sessions with data stored on 
  the server about a specific website user resulted in the invention of the HTTP 
  cookie. A cookie is a way for a web server to store data in the web browser. 
  This cookie is passed back to the server on later requests. This is often used 
  to associate some data on the server (state) with a specific user. A 
  typical example is that of a webshop shopping cart. The user adds the goods 
  he wish to purchase to the cart and the server associates the user's cookie 
  with a certain cart stored on the server. 
As you might have guessed this means that clustering gets somewhat more complex. 
  It is no longer enough that the document hierarchy is shared between the web 
  servers, but now the state stored on a server will mean that requests sent to 
  different servers will result in different results. Somehow we need to solve 
  that. There are two obvious solutions to the problem: 

  When a web site user has any state on the server associated with him, make 
sure that he always get directed to the server which holds his state. If the 
server can no longer respond, for any reason, let him log in again to a new 
server.
  Replicate all state on a server to at least one other server. Make 
sure the user gets send to a server that holds his state. If his 
original 

RE: Load balancing advice needed

2001-05-18 Thread Frank Eggink

Guess what you what is more of an -un-clustering excercise :-)

When specifying your params for your InitialContext you have to set the PROVIDER_URL. 
That specifies a host path.

e.g. 
...
properties.put(Context.PROVIDER_URL, 
ormi://your-bean-server/your-application/);
...
jndiContext = new InitialContext(properties);


Or alternatively: something like that in your jndi.properties file.


FE

On Friday, May 18, 2001 12:17 PM, Joni Suominen [SMTP:[EMAIL PROTECTED]] wrote:
 Hi!
 I am currently planning the new production environment for our service.
 The idea is to have following harware setup:
 
 1 firewall (which used for loadbalancing too)
 2 Linux/Intel boxes as frontend servers (both running HTTP accelerators
 and web containers)
 1 UNIX server as a backend server (running an EJB container and
 databases)
 
 I went through load balancing documentation which I found from
 orionserver.com but I didn't find any way to separate Orion's web
 container and EJB container to achieve the above setup. Is it somehow
 possible to do that kind of separation? How would you distribute the
 required processes on those three servers?
 
 -- 
 Joni
 [EMAIL PROTECTED]
 




Re: load balancing

2001-02-25 Thread Greg Matthews



found it.

someone else was using clustering also and we 
weren't specifying minimumIsland and maximumIsland when launching loadbalancer, 
i.e.each of our loadbalancers were 
seeing each others servers.


  - Original Message - 
  From: 
  Greg 
  Matthews 
  To: Orion-Interest 
  Sent: Monday, February 26, 2001 12:52 
  PM
  Subject: load balancing
  
  dear all,
  
  i've had a go at setting up load balancing and 
  it's half working.
  
  i don't know what's registering with the load 
  balancer for the first servermentioned in the message below. the second 
  server mentioned is the one i configured.
  
  anyone have a rough guess about what i might have 
  done to cause the first server to be appearing.
  
  when i open pages on the site, the load balancer 
  finds 127.0.0.1 invalid, then removes it from the cluster, but then about 5 
  seconds later it re-adds it back in.
  
  F:\orionjava -jar -debug 
  loadbalancer.jar
  Balancer initialized...Added island number 1 
  to the cluster...Discovered server 
  127.0.0.1/127.0.0.1:8081... = where's this coming 
  from?Discovered server PIII-450/57.226.58.6:8080... 
  = this is ok.
  
  
  from default-web-site.xml
  
  web-site cluster-island="1" 
  host="57.226.58.6" port="8080" display-name="Default Orion 
  WebSite"
   frontend 
  host="57.226.58.6" port="80"/
   web-app application="demo" 
  name="person-web" root="/person" load-on-startup="true"/
  
   !-- etc, etc, 
  --
  
  /web-site


RE: Load balancing with Orion

2000-12-11 Thread Kevin Duffey

The only thing I can think of...did you specify the WELCOM file of
index.jsp? Otherwise it defaults to index.html I think. That should be in
your web.xml file.


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of
 [EMAIL PROTECTED]
 Sent: Monday, December 11, 2000 7:46 PM
 To: Orion-Interest
 Subject: Load balancing with Orion


 Guys,

 i have a problem, i'm tryin to use Orion as Load Balancer
 here is my load-balancer.xml file which is located in
 $ORION_HOME/config/

 ?xml version="1.0"?
 !DOCTYPE data-sources PUBLIC "Orion load-balancer"
 "http://www.orionserver.com/dtds/load-balancer.dtd"

 load-balancer host="[ALL]" port="80" secure="false"
 selection-type="random"
 user-ip="true" use-session-id="true"
  island id="0"
   backend-server host="192.168.1.139" port="80"/
  /island
  island id="1"
   backend-server host="192.168.1.138" port="80"/
  /island
 /load-balancer

 So basicly what im trying to do is balance traffic between those
 2 servers.
 But for some reason when i request "localhost" it displays me a page that
 is "website/index.html". I wonder why is that happenin.

 Any help is deeply appreciated

 Thank You

 -Anton






Re: load-balancing limitations?

2000-10-09 Thread Robert Krueger


same limitations as for persistent sessions. to replicate session state 
orion has to be send it over the wire, i.e. serialize it. for homes and 
ejbobjects that's automtically taken care of by orion. for the other stuff 
you have to make everything you put into a session serializable.

HTH

robert


At 16:06 09.10.00 , you wrote:
Hello,

i just set up load-balancing as described in the documentation.

i testet with "default-web-app" and some servlets and it seems
to work fine.

then i tried my struts-based application and i got following exception:

---snipp-
java.lang.IllegalArgumentException: Only java.io.Serializable,
   javax.ejb.EJBObject and javax.ejb.EJBHome instances can be bound
   to a session in a distributable web-application
 at com.evermind.server.http.ClusteredHttpSession.setAttribute(JAX)
 at com.evermind.server.http.EvermindHttpSession.putValue(JAX)
 at com.evermind.server.http.EvermindPageContext.setAttribute(JAX)
  - at org.apache.struts.taglib.FormTag.doStartTag(FormTag.java:510)
-
 at /logon.jsp._jspService(/logon.jsp.java:73) (JSP page line 27)
 at com.orionserver.http.OrionHttpJspPage.service(JAX)
 at com.evermind.server.http.HttpApplication.xa(JAX)
 at com.evermind.server.http.JSPServlet.service(JAX)
 at com.evermind.server.http.d3.so(JAX)
 at com.evermind.server.http.d3.sm(JAX)
 at com.evermind.server.http.ef.su(JAX)
 at com.evermind.server.http.ef.dn(JAX)
 at com.evermind.util.f.run(JAX)
---snipp-
FormTag.java:510
 pageContext.setAttribute(name, bean, scope);
---snipp-

whats the problem?

thanks a lot
   klaus

--
Klaus Thiele - Personal  Informatik AG
mailto:[EMAIL PROTECTED]

  "There's got to be more to life than compile-and-go."

(-) Robert Krüger
(-) SIGNAL 7 Gesellschaft für Informationstechnologie mbH
(-) Brüder-Knauß-Str. 79 - 64285 Darmstadt,
(-) Tel: 06151 665401, Fax: 06151 665373
(-) [EMAIL PROTECTED], www.signal7.de