Firebird on Linux. Author: Philippe Makowski IBPhoenix Email: pmakowski@ibphoenix.com Licence: Public Documentation License Date: 2011-11-22



Similar documents
Syslog & xinetd. Stephen Pilon

Wavelink Avalanche Mobility Center Linux Reference Guide

Linux Networking: network services

DHCP Turbo Installation Guide i. DHCP Turbo Installation Guide

Yosemite Server Backup Installation Guide

The Linux System. o Updating without touching the user's files and configurations.

Linux System Administration. System Administration Tasks

Linux System Administration on Red Hat

Red Hat Linux Networking

Spectrum Scale HDFS Transparency Guide

CS197U: A Hands on Introduction to Unix

Configuring Secure Linux Hosts

Partek Flow Installation Guide

RH033 Red Hat Linux Essentials or equivalent experience with Red Hat Linux..

Installing QuickBooks Enterprise Solutions Database Manager On Different Linux Servers

Cloud Homework instructions for AWS default instance (Red Hat based)

QuickBooks Enterprise Solutions. Linux Database Server Manager Installation and Configuration Guide

BF2CC Daemon Linux Installation Guide

Windows Template Creation Guide. How to build your own Windows VM templates for deployment in Cloudturk.

Installation Guide. Copyright (c) 2015 The OpenNMS Group, Inc. OpenNMS SNAPSHOT Last updated :19:20 EDT

AlienVault Unified Security Management (USM) 4.x-5.x. Deploying HIDS Agents to Linux Hosts

EXPLORING LINUX KERNEL: THE EASY WAY!

Installation Guide. MashZone. Version 9.6

NRPE Documentation CONTENTS. 1. Introduction... a) Purpose... b) Design Overview Example Uses... a) Direct Checks... b) Indirect Checks...

nitrobit update server

NATIONAL POPULATION REGISTER (NPR)

Managed Backup Service - Agent for Linux Release Notes

<Insert Picture Here>

URL:

Net/FSE Installation Guide v1.0.1, 1/21/2008

CatDV-StorNext Archive Additions: Installation and Configuration Guide

Linux Overview. The Senator Patrick Leahy Center for Digital Investigation. Champlain College. Written by: Josh Lowery

Configuring the Active Directory Plug-in

How To Install Acronis Backup & Recovery 11.5 On A Linux Computer

vtiger CRM 4.2 Installation Guide for Linux OS

HP LeftHand SAN Solutions

Computer Science and Engineering Linux Cisco VPN Client Installation and Setup Guide

Btrfs and Rollback How It Works and How to Avoid Pitfalls

Monitoring a Linux Mail Server

Gluster Filesystem 3.3 Beta 2 Hadoop Compatible Storage

VERSION 9.02 INSTALLATION GUIDE.

Installing VMware Tools on Clearswift v4 Gateways

Command Line Install and Config For IBM BPM 8.5

UPSMON PRO Linux --- User Manual

Installation Guide. HP Vertica Analytic Database. Software Version: 7.0.x

Red Hat Linux Administration II Installation, Configuration, Software and Troubleshooting

GroundWork Monitor Open Source Installation Guide

Linux - CentOS 6 Install Guide

Installation Guide. HP Vertica Analytic Database. Software Version: 7.1.x

Deploying IBM Lotus Domino on Red Hat Enterprise Linux 5. Version 1.0

How To Run A Password Manager On A 32 Bit Computer (For 64 Bit) On A 64 Bit Computer With A Password Logger (For 32 Bit) (For Linux) ( For 64 Bit (Foramd64) (Amd64 (For Pc

FirstClass Synchronization Services Install Guide

System Management with Spacewalk

REDEFINING THE ENTERPRISE OS RED HAT ENTERPRISE LINUX 7

Linux Security Ideas and Tips

Host Hardening. OS Vulnerability test. CERT Report on systems vulnerabilities. (March 21, 2011)

OnCommand Performance Manager 1.1

Desktop : Ubuntu Desktop, Ubuntu Desktop Server : RedHat EL 5, RedHat EL 6, Ubuntu Server, Ubuntu Server, CentOS 5, CentOS 6

INUVIKA OVD INSTALLING INUVIKA OVD ON UBUNTU (TRUSTY TAHR)

How To Install Storegrid Server On Linux On A Microsoft Ubuntu 7.5 (Amd64) Or Ubuntu (Amd86) (Amd77) (Orchestra) (For Ubuntu) (Permanent) (Powerpoint

Red Hat System Administration 1(RH124) is Designed for IT Professionals who are new to Linux.

Using Network Attached Storage with Linux. by Andy Pepperdine

LABORATORIUM 1 Setup and basic configuration of Asterisk BPX on Linux

Installation and Control in Linux

Intuit QuickBooks Enterprise Solutions. Linux Database Server Manager Installation and Configuration Guide

GL254 - RED HAT ENTERPRISE LINUX SYSTEMS ADMINISTRATION III

Basic Installation of the Cisco Collection Manager

pbuilder Debian Conference 2004

A Tool must be configured to allow for CMISSync, see below for more information.

SUSE Manager in the Public Cloud. SUSE Manager Server in the Public Cloud

Installing and Configuring MySQL as StoreGrid Backend Database on Linux

How to Install and Run Tibia on Linux Using Wine without Windows Contents

Hadoop Lab - Setting a 3 node Cluster. Java -

LSN 10 Linux Overview

systemd Mehr als nur ein neues Init-System Markus Schade

Back Up Linux And Windows Systems With BackupPC

Kerio MailServer 6. Administrator s Guide. Kerio Technologies

Monitoring Clearswift Gateways with SCOM

Syncplicity On-Premise Storage Connector


How To Run A Linux Agent On Alandesk (For Free) On A Linux Server (For A Non-Free) On Your Ubuntu Computer (For Cheap) On An Ubuntu 2.5 (For Ubuntu) On Linux

Quick Start Guide. Quick Start Guide. taskit GmbH. for Portux920T EU / SW Portux Mini-PC Portux Panel-PC Panel-Card MoLUX Stamp

GL-250: Red Hat Linux Systems Administration. Course Outline. Course Length: 5 days

Linux Operating System Security

Symantec AntiVirus for Linux Implementation Guide

Using New Relic to Monitor Your Servers

ALERT installation setup

How to Install Multicraft on a VPS or Dedicated Server (Ubuntu bit)

Setting up a Raspberry Pi as a WiFi access point

Example of Standard API

A technical whitepaper describing steps to setup a Private Cloud using the Eucalyptus Private Cloud Software and Xen hypervisor.

Server Monitoring. AppDynamics Pro Documentation. Version Page 1

Getting your system to boot with initrd and initramfs

Installation Guide for WebSphere Application Server (WAS) and its Fix Packs on AIX V5.3L

Installing TeamCall Server on Mac OS X

Configuring Sun StorageTek SL500 tape library for Amanda Enterprise backup software

dotdefender v5.12 for Apache Installation Guide Applicure Web Application Firewall Applicure Technologies Ltd. 1 of 11 support@applicure.

Red Hat JBoss Core Services Apache HTTP Server 2.4 Apache HTTP Server Installation Guide

Lustre SMB Gateway. Integrating Lustre with Windows

Securing Linux. Presented by: Darren Mobley

Transcription:

Author: Philippe Makowski IBPhoenix Email: pmakowski@ibphoenix.com Licence: Public Documentation License Date: 2011-11-22

How to install Project packages rpm tar.gz Distributions packages Build from sources

pro easy? secure (sysdba password) project build (no patch) project build easier to debug con Project packages - rpm too generic not support update (rpm ) not always check dependencies all in /opt pre 2.5 builds with old libc old and not full icu

pro easy (extract, install) secure (sysdba password) project build (no patch) project build easier to debug con not support update not check dependencies pre 2.5 builds with old libc old and not full icu Project packages - tar.gz

Project packages - check list classic server xinetd: all yum install xinetd libc for pre 2.5 (libstdc++.so.5): urpmi libstdc++5 yum install compat-glibc problem? support list

pro easy good integration dependencies correctly managed build with default distro libc full icu con Distribution packages can have wrong patch available later usualy one version at the same time full icu

pro choice con time what you need to build g++, awk, sed, autoconf lib headers example under debian: Build from sources apt-get install g++ autoconf automake libtool sed libncurses5-dev make

Build from sources - options Building from source give you options : with or without OS editline with or without OS ICU service name, port files location options Example:./autogen.sh --prefix=/opt/firebird --enable-superserver --with-system-editline --with-system-icu

Fine tuning of the installation directories: --with-fbbin executables DIR (PREFIX/bin) --with-fbsbin system admin executables DIR (PREFIX/bin) --with-fbconf config files DIR (PREFIX) --with-fblib object code libraries DIR (PREFIX/lib) --with-fbinclude C/C++ header files DIR (PREFIXinclude) --with-fbdoc documentation root DIR (PREFIX/doc) --with-fbudf UDF DIR (PREFIX/UDF) --with-fbsample examples DIR (PREFIX/examples) --with-fbsample-db examples database DIR (PREFIX/examples/empbuild) --with-fbhelp QLI help DIR (PREFIX/help) --with-fbintl international DIR (PREFIX/intl) --with-fbmisc misc DIR (PREFIX/misc) --with-fbsecure-db security database DIR (PREFIX) --with-fbmsg message files DIR (PREFIX) --with-fblog log files DIR (PREFIX) --with-fbglock guardian lock DIR (PREFIX) --with-fbplugins plugins DIR (PREFIX)

After installation Some points you have may have to check : xinetd max open files file system

Below is a sample /etc/xinetd.conf file: Classic and xinetd defaults { instances = 500 log_type = SYSLOG authpriv log_on_success = HOST PID log_on_failure = HOST cps = 5000 1000 per_source = 200 } includedir /etc/xinetd.d instances Sets the maximum number of requests xinetd can handle at once cps Configures xinetd to allow no more than 5000 connections per second to any given service. If this limit is reached, the service is retired for 1000 seconds. per_source Defines the maximum number of instances for a service per source IP address.

Firebird and Systemd systemd is a replacement for the System V init daemon for Linux. It is intended to provide a better framework for expressing services' dependencies, allow more work to be done in parallel at system startup, and to reduce shell overhead. Website: http://www.freedesktop.org/wiki/software/systemd/ With systemd Classic not use anymore xinetd, but a socket activation. For example in Fedora, we have to files : /lib/systemd/system/firebird-classic.socket /lib/systemd/system/firebird-classic@.service To start Firebird Classic: systemctl start firebird-classic.socket

You have to check : Check max open files file-max ulimit On Linux systems, there is a limit set in the kernel on how many open file descriptors are allowed on the system To check this value: # sysctl fs.file-max fs.file-max = 203786 usually this number is high enough, but if you need to change it: # sysctl -w fs.file-max=360000 fs.file-max = 360000

Above commands let the system remember new settings until the next system restart. If you want to make the change permanent you have to edit file: /etc/sysctl.conf: fs.file-max=360000 It will be automatically loaded next time you start the server. Command: # sysctl -p Causes the /etc/systcl.conf to be reloaded which is useful when you added more parameters to the file and don't want to restart the server. There are also 2 types of system limits: soft limit which can be temporarily exceeded by the user and hard limit which can not be exceeded. To see your hard limit execute command: # ulimit -Hn

but to see the limit for the firebird user, you have to be logged in as firebird user. To set up firebird limits, edit /etc/security/limits.conf: firebird soft nofile 4096 firebird hard nofile 10240 For those changes to make an effect you have to logout from the modified account and login again. New limits should be applied.

File system No obvious rules there kernel dependant choose the file system you trust What can have performance influence : mount option sync / async : How the input and output to the filesystem should be done. sync means it's done synchronously (more secure) atime / noatime : atime (update on access), noatime (do not update) last accessed time. you can check this in /etc/fstab scheduler : often deadline scheduler perform better than cfq you can check the scheduler used with: # cat /sys/block/sda/queue/scheduler noop deadline [cfq]

About the scheduler, pass the option to your boot loader, /etc/grub.conf: title Red Hat Enterprise Linux Server (2.6.18-8.el5) root (hd0,0) kernel /vmlinuz-2.6.18-8.el5 ro root=/dev/sda2 elevator=deadline initrd /initrd-2.6.18-8.el5.img or change it for the hard disk you want: # echo deadline > /sys/block/sda/queue/scheduler or $ echo deadline sudo tee /sys/block/queue/scheduler If you want a permanent change, use sysfsutils: # apt-get install sysfsutils # grep scheduler /etc/sysfs.conf block/sdc/queue/scheduler = cfq # /etc/init.d/sysfsutils restart

Philippe Makowski - IBPhoenix - 2011-11-22 Make your own tests, read Article about Firebird and Linux File Systems : http://www.ibphoenix.com/resources/documents/search/doc_26

Thank you!