Sonntag, 22. März 2009

Firebird Classic Server unter Linux

Der Classicserver ist unter Linux bei Mehrprozessormaschinen die erste Wahl. Allerdings sind im Gegensatz zum Superserver einige Einstellungen zur Serverkonfiguration vorzunehmen bzw. anzupassen um ausreichend skalieren zu können. Die folgende Beispielkonfiguration zielt auf einen Einsatz des Classicservers mit mehr als 100 Benutzern auf einer SMP-Maschine mit entsprechender Ausstattung.

/etc/pam.d/xdm und login
session required pam_limits.so

/etc/security/limits.conf
firebird soft nproc 16384
firebird hard nproc 16384
firebird soft nofile 65536
firebird hard nofile 65536

/etc/xinet.d/firebird
service gds_db {
# These lines cause problems with Windows XP SP2 clients
# using default firewall configuration (SF#1065511)
# log_on_success += USERID
# log_on_failure += USERID
socket_type = stream
protocol = tcp
wait = no
user = firebird
server = /opt/firebird/bin/fb_inet_server
flags = REUSE
instances = UNLIMITED
per_source = UNLIMITED
}

/etc/sysctl.conf

#Disable response to broadcasts.
#You don't want yourself becoming a Smurf amplifier.
#net.ipv4.icmp_echo_ignore_broadcasts = 1
#enable route verification on all interfaces
#net.ipv4.conf.all.rp_filter = 1
#enable ipV6 forwarding
#net.ipv6.conf.all.forwarding = 1
kernel.shmall = 134217728
kernel.shmmax = 134217728
kernel.sem=4096 512000 1600 9000
fs.file-max = 16384
kernel.threads-max = 50000

/opt/firebird/firebird.conf
DefaultDbCachePages = 2048
LockSemCount = 1048
LockHashSlots = 2017
LockMemSize = 8388608

/etc/services
gds_db 3050/tcp # Firebird SQL Database Remote Protocol

Keine Kommentare:

Kommentar veröffentlichen