Return-Path: X-Original-To: apmail-myfaces-users-archive@www.apache.org Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D893E100CF for ; Mon, 21 Oct 2013 03:40:48 +0000 (UTC) Received: (qmail 4247 invoked by uid 500); 21 Oct 2013 03:40:47 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 4214 invoked by uid 500); 21 Oct 2013 03:40:47 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 4200 invoked by uid 99); 21 Oct 2013 03:40:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Oct 2013 03:40:45 +0000 X-ASF-Spam-Status: No, hits=2.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_REPLY,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of smithh032772@gmail.com designates 209.85.212.172 as permitted sender) Received: from [209.85.212.172] (HELO mail-wi0-f172.google.com) (209.85.212.172) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Oct 2013 03:40:41 +0000 Received: by mail-wi0-f172.google.com with SMTP id ez12so3280798wid.11 for ; Sun, 20 Oct 2013 20:40:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=0jD5oazChOaziLfEr9Aq+FB4QxkvHORH2qIER6hRYs0=; b=gBVM+wNrC/qvradVrlWkVKqVIdvsxlXy8PJkvP1VyftfxkhayRFOKeLhl7ouCiTTPm okUw/qmu2tgmFFI3mIo8w/4QGmEwz19PHqfjB+h+K/2/fbig10tmlvI6gV41YisvYhzr UmPjMvkiDwDgO+YJimlN3m014U+3suNkXZYTpq82uSEeat+OUwJftSL+poERZazzYv8Y 3ddmVcWO+17L2yVk287zrju/cGqnM3WAjzmmhQCyVZ9dZzCba/WzuO2AqorPfEqFZUFO lo6qRYEYKijK7kDLbA7QTnJLWcsRjsWoZApA0X+GhIfdM5jYWBT38Qht/70kkPehvhGw ccJg== MIME-Version: 1.0 X-Received: by 10.194.23.73 with SMTP id k9mr12198355wjf.24.1382326820162; Sun, 20 Oct 2013 20:40:20 -0700 (PDT) Received: by 10.227.208.7 with HTTP; Sun, 20 Oct 2013 20:40:20 -0700 (PDT) In-Reply-To: References: <1382271473.16319.YahooMailNeo@web28905.mail.ir2.yahoo.com> Date: Sun, 20 Oct 2013 23:40:20 -0400 Message-ID: Subject: Re: [OT but still JSF]: Clustering, session replication, and database, too From: "Howard W. Smith, Jr." To: MyFaces Discussion Content-Type: multipart/alternative; boundary=047d7b5d439614521404e9380bed X-Virus-Checked: Checked by ClamAV on apache.org --047d7b5d439614521404e9380bed Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable how many concurrent users is your app serving....normally or at peak times? earlier, i think you mentioned response time is quite fast. did you throw fast/high-performance hardware at db server, so db server responds fasts to queries/updates? do you have any expensive queries or updates...that may cause other endusers to wait for a few seconds (or more)...if multiple users are using your app, concurrently? any (other db) performance issues that you'd like to share or you know can/should be optimized to improve response time since one database is serving 2 tomee/jsf/ear layer? On Sun, Oct 20, 2013 at 9:03 PM, Jos=E9 Luis Cetina w= rote: > El 20/10/2013 19:34, "Howard W. Smith, Jr." > escribi=F3: > > > > so, db server is on a separate machine/server on the network, and each > EAR > > is referencing the (one) db server via IP address? > > > > Yes 2 tomee instances each in separete server point to a third server tha= t > only serve as db server. Thats why y have clustering only in webapps and > not in db. > > > also, do you have an embedded db server (running inside of tomee and > using > > tomcat jdbc pooling) or network db server/engine? > > > > > > I use tomcat jdbc pooling (tomee with defined connections in tomee.xml) > > > On Sun, Oct 20, 2013 at 5:32 PM, Jos=E9 Luis Cetina >wrote: > > > > > Ear with all my apps in each server (2 server each with their own ear= ) > then > > > each server insert/read in another unique db server. > > > El 20/10/2013 16:09, "Howard W. Smith, Jr." > > > escribi=F3: > > > > > > > Hmmm, i thought you said that you have EAR on one server and databa= se > on > > > > separate server. are you running 2 tomee on same server; one tomee = =3D > EAR, > > > > another tomee =3D database? > > > > > > > > > > > > > > > > On Sun, Oct 20, 2013 at 11:52 AM, Jos=E9 Luis Cetina < > maxtorzito@gmail.com > > > > >wrote: > > > > > > > > > By the way im not using remote calls. All my apps are in the same > ear > > > > with > > > > > this i can inject my ejb local interface for calling methods in > ejb. > > > > > El 20/10/2013 07:49, "Howard W. Smith, Jr." < > smithh032772@gmail.com> > > > > > escribi=F3: > > > > > > > > > > > just remembered-and-revised 2nd question, below... > > > > > > > > > > > > On Sun, Oct 20, 2013 at 8:35 AM, Howard W. Smith, Jr. < > > > > > > smithh032772@gmail.com> wrote: > > > > > > > > > > > > > > > > > > > > On Sun, Oct 20, 2013 at 8:17 AM, Mark Struberg < > struberg@yahoo.de> > > > > > > wrote: > > > > > > > > > > > > > >> This can also be very helpful to 'scale out' in case you nee= d > > > > > > performance: > > > > > > >> > > > > > > >> All write stuff is only performed on the master node, but > > > expensive > > > > > > >> queries/searches might be performed on the n replication > nodes. Of > > > > > > course > > > > > > >> this needs a special handling in your app, but allows to mov= e > the > > > > > > expensive > > > > > > >> queries away from your primary node. > > > > > > >> > > > > > > > > > > > > > > hmmm, had a question or two, or seeking clarification (or a b= it > > > more > > > > > > > details or even a reference to a blog/article/document). > > > > > > > > > > > > > > 1. scale-out usually mean different physical servers? scaling > out > > > > > > multiple > > > > > > > databases on one physical server, usually (or I would assume) > means > > > > > that > > > > > > > the hard drive becomes the bottleneck, if hard drive contain > > > multiple > > > > > > > databases. right? > > > > > > > > > > > > > > 2. this needs special handling in your app? can you please > clarify? > > > > > > > > > > > > > > > > > > > > thanks! > > > > > > > > > > > > > > > > > > > --047d7b5d439614521404e9380bed--