ezylinux
ลินุกซ์ง่ายนิดเดียว

Mysql

20
Jul

ปัญหาการเกิด error “too many connections” ในขณะที่ query database อยู่ เกิดจากจำนวน connections ที่เข้ามาติดต่อ database มีจำนวนมากกว่าที่ max_connections ได้กำหนดไว้ ซึ่งโดยปกติแล้ว MySQL จะยอมให้มีจำนวน connections ได้เท่ากับ max_connections+1 โดยที่ max_connections คือ จำนวน connections ที่มากที่สุดที่อนุญาต และ +1 คือ connection ของ super user

ค่า default ของ max_connections สำหรับ version ที่ต่ำกว่า 5.1.15 จะเท่ากับ 100 connections ถ้าสูงกว่ามีค่าเท่ากับ 151 connections และค่าสูงสุดที่สามารถกำหนดได้ สำหรับ version 5.1.15 – 5.1.16 คือ 16384 แต่ถ้า version 5.1.17 เป็นต้นไปสามารถกำหนดได้ถึง 100000
continue

Tags: max_connections, too many connections error
Category : Mysql | Blog
31
Aug


ในบทความนี้จะใช้เครื่องจำนวน 4 เครื่อง โดยแต่ละเครื่องจะมีหน้าที่ storages node จำนวน 2 เครื่อง (mysql-ndb-1 และ mysql-ndb-2) API node จำนวน 1 เครื่อง (mysql-api-1) และ Management node จำนวน 1 เครื่อง (mgmt)

package สำหรับการติดตั้ง MySQL Cluster
MySQL-clustermanagement-community.xxxx.rpm,
MySQL-clusterstorage-community.xxxx.rpm,
MySQL-clustertools-community.xxxx.rpm
,
MySQL-clusterextra-community.xxxx.rpm

เมื่อทำการติดตั้ง package เรียบร้อยแล้ว ต่อมาให้มาที่เครื่อง mgmt
และพิมพ์คำสั่งและแก้ไขไฟล์ config ตามด้านล่าง

continue

Tags: cluster, Mysql, mysql cluster
Category : Linux Cluster | Mysql | Blog