PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.php > MYSQL Localhost restriction || Multiserver Architecture
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
MYSQL Localhost restriction || Multiserver Architecture

Réponse
 
LinkBack Outils de la discussion
Vieux 13/11/2007, 17h44   #1
Pseudonyme
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut MYSQL Localhost restriction || Multiserver Architecture


A Paris,
Le 13 Novembre de l'an MMVII,

My dear Sir and Madam,

Ever be in a position of too-much traffic ?

Point is, if the traffic increases, then the server is slow.


TOP command on a Linux/Unix/Fedora Apache/2.0.50 shows :
- 50% of the CPU : for HTTPD process
- 20% of the CPU : for Analog Process
- 20% of the CPU : for MYSQLD Process


The direct analysis would pretend that HTTPD is the problem. BUT may
be HTTPD is waiting for MYSQLD answer.
We have problem to analyse the sources of the lack of performance.


1) Idea ONE was to split sub.domains within other servers with
independant databases merged and consolidated into a single one using
exchange of tables.


2) Idea TWO was to have MYSQL hosted on one server and sub.domains
split over different servers.


SERVER1 : MYSQL
SERVER2 : oaks.bobby.com
SERVER3 : liveoaks.bobby.com
SERVER4 : bobby.com


We know ebay is ebay.com and these administrators might split over
servers depending on variables that our team does not manage.


3) We tried to go with Idea TWO and we are facing a problem.


Creating a user on SERVER1
Name : bobbob
Data Privilege : SELECT
INSERT
UPDATE
DELETE
FILE


Information related to connections
Server : % (all servers)


FLUSH PRIVILEGES ;


Then, on SERVER2 :
<?


$host = "207.36.16.15";
$user = "bobbob";
$pass = "bobbob";
$bdd = "adv_database";
?>


It does not work : Cannot access the database on SERVER1 from
SERVER2.
Even, we tried to add specfic provileges to bobbob.


Many Thanks for any operational answer from your knowledge and
background experience.

Norman

  Réponse avec citation
Vieux 13/11/2007, 17h54   #2
Captain Paralytic
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: MYSQL Localhost restriction || Multiserver Architecture

On 13 Nov, 16:44, Pseudonyme <norman_cougl...@2cuk.co.uk> wrote:
> A Paris,
> Le 13 Novembre de l'an MMVII,
>
> My dear Sir and Madam,
>
> Ever be in a position of too-much traffic ?
>
> Point is, if the traffic increases, then the server is slow.
>
> TOP command on a Linux/Unix/Fedora Apache/2.0.50 shows :
> - 50% of the CPU : for HTTPD process
> - 20% of the CPU : for Analog Process
> - 20% of the CPU : for MYSQLD Process
>
> The direct analysis would pretend that HTTPD is the problem. BUT may
> be HTTPD is waiting for MYSQLD answer.
> We have problem to analyse the sources of the lack of performance.
>
> 1) Idea ONE was to split sub.domains within other servers with
> independant databases merged and consolidated into a single one using
> exchange of tables.
>
> 2) Idea TWO was to have MYSQL hosted on one server and sub.domains
> split over different servers.
>
> SERVER1 : MYSQL
> SERVER2 : oaks.bobby.com
> SERVER3 : liveoaks.bobby.com
> SERVER4 : bobby.com
>
> We know ebay is ebay.com and these administrators might split over
> servers depending on variables that our team does not manage.
>
> 3) We tried to go with Idea TWO and we are facing a problem.
>
> Creating a user on SERVER1
> Name : bobbob
> Data Privilege : SELECT
> INSERT
> UPDATE
> DELETE
> FILE
>
> Information related to connections
> Server : % (all servers)
>
> FLUSH PRIVILEGES ;
>
> Then, on SERVER2 :
> <?
>
> $host = "207.36.16.15";
> $user = "bobbob";
> $pass = "bobbob";
> $bdd = "adv_database";
> ?>
>
> It does not work : Cannot access the database on SERVER1 from
> SERVER2.
> Even, we tried to add specfic provileges to bobbob.
>
> Many Thanks for any operational answer from your knowledge and
> background experience.
>
> Norman


I thought you were bob earlier on?

  Réponse avec citation
Vieux 13/11/2007, 19h42   #3
Jerry Stuckle
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: MYSQL Localhost restriction || Multiserver Architecture

Captain Paralytic wrote:
> On 13 Nov, 16:44, Pseudonyme <norman_cougl...@2cuk.co.uk> wrote:
>> A Paris,
>> Le 13 Novembre de l'an MMVII,
>>
>> My dear Sir and Madam,
>>
>> Ever be in a position of too-much traffic ?
>>
>> Point is, if the traffic increases, then the server is slow.
>>
>> TOP command on a Linux/Unix/Fedora Apache/2.0.50 shows :
>> - 50% of the CPU : for HTTPD process
>> - 20% of the CPU : for Analog Process
>> - 20% of the CPU : for MYSQLD Process
>>
>> The direct analysis would pretend that HTTPD is the problem. BUT may
>> be HTTPD is waiting for MYSQLD answer.
>> We have problem to analyse the sources of the lack of performance.
>>
>> 1) Idea ONE was to split sub.domains within other servers with
>> independant databases merged and consolidated into a single one using
>> exchange of tables.
>>
>> 2) Idea TWO was to have MYSQL hosted on one server and sub.domains
>> split over different servers.
>>
>> SERVER1 : MYSQL
>> SERVER2 : oaks.bobby.com
>> SERVER3 : liveoaks.bobby.com
>> SERVER4 : bobby.com
>>
>> We know ebay is ebay.com and these administrators might split over
>> servers depending on variables that our team does not manage.
>>
>> 3) We tried to go with Idea TWO and we are facing a problem.
>>
>> Creating a user on SERVER1
>> Name : bobbob
>> Data Privilege : SELECT
>> INSERT
>> UPDATE
>> DELETE
>> FILE
>>
>> Information related to connections
>> Server : % (all servers)
>>
>> FLUSH PRIVILEGES ;
>>
>> Then, on SERVER2 :
>> <?
>>
>> $host = "207.36.16.15";
>> $user = "bobbob";
>> $pass = "bobbob";
>> $bdd = "adv_database";
>> ?>
>>
>> It does not work : Cannot access the database on SERVER1 from
>> SERVER2.
>> Even, we tried to add specfic provileges to bobbob.
>>
>> Many Thanks for any operational answer from your knowledge and
>> background experience.
>>
>> Norman

>
> I thought you were bob earlier on?
>
>


Maybe he has an identity crisis, Paul :-)

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 01h45.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 2,49379 seconds with 11 queries