Advanced Settings Oct 10, 2011



Similar documents
Securing shared hosting using CageFS

Igor Seletskiy. CEO, CloudLinux

Applying the Benefits of Cloud and Clustering to your Shared Hosting Platform

CloudLinux is a proven solution for shared hosting providers that:

About CloudLinux. LVE Manager. Industry awards. Ruby Selector. Python Selector. CageFS. Mod_lsapi. MySQL Governor. OptimumCache.

Virtualization Strategy with Oracle VM and Oracle Linux. Bjorn Naessens

Cloud Server. Parallels. Key Features and Benefits. White Paper.

Use Cases for Docker in Enterprise Linux Environment CloudOpen North America, 2014 Linda Wang Sr. Software Engineering Manager Red Hat, Inc.

Performance Evaluation of Shared Hosting Security Methods

<Insert Picture Here>

SERVICE SCHEDULE PULSANT ENTERPRISE CLOUD SERVICES

The Benefits of Verio Virtual Private Servers (VPS) Verio Virtual Private Server (VPS) CONTENTS

XDB. Shared MySQL hosting at Facebook scale. Evan Elias Percona Live MySQL Conference, April 2015

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

Hyper-V vs ESX at the datacenter

Wednesday, October 10, 12. Running a High Performance LAMP stack on a $20 Virtual Server

Limiting PostgreSQL resource consumption using the Linux kernel

Applications Manager Best Practices document

Cloud Hosting for PostgreSQL

Oracle Linux Overview. Presented by: Anuj Verma Title: Senior Pre-Sales Consultant

Parallels Operations Automation

Resource Management with CGroups

JBOSS OPERATIONS NETWORK (JBOSS ON) MONITORING

SERVICE SCHEDULE PUBLIC CLOUD SERVICES

Software Collections

This document will list the ManageEngine Applications Manager best practices

Red Hat enterprise virtualization 3.0 feature comparison

Linux - CentOS 6 Install Guide

Red Hat Enterprise Linux 7 Platform without Boundaries

Very Large Enterprise Network, Deployment, Users

Apache 2.0 Installation Guide

OS Thread Monitoring for DB2 Server

This guide specifies the required and supported system elements for the application.

KonyOne Server Installer - Linux Release Notes

This document describes the new features of this release and important changes since the previous one.

Enterprise Network Deployment, 10,000 25,000 Users

UBUNTU DISK IO BENCHMARK TEST RESULTS

NAS Storage needs to be purchased; Will not be offered IAAS - Utility SMTP Per SMTP account Per server

Practical Load Balancing

Drupal Performance Tuning

High Availability with Elixir

Best Practices for Optimizing Your Linux VPS and Cloud Server Infrastructure

Ingram Micro Cloud Hosted Services

The current version installed on your server is el6.x86_64 and it's the latest available.

Copyright by Parallels Holdings, Ltd. All rights reserved.

Black-box and Gray-box Strategies for Virtual Machine Migration

MySQL: Cloud vs Bare Metal, Performance and Reliability

owncloud Enterprise Edition on IBM Infrastructure

Virtualization in Linux

VIRTUOZZO TM FOR LINUX 2.6.1

Parallels Virtuozzo Containers

CS 377: Operating Systems. Outline. A review of what you ve learned, and how it applies to a real operating system. Lecture 25 - Linux Case Study

Supported Platforms HPE Vertica Analytic Database. Software Version: 7.2.x

Implementing Internet Storage Service Using OpenAFS. Sungjin Dongguen Arum

Very Large Enterprise Network Deployment, 25,000+ Users

IBM Cloud Manager with OpenStack

White Paper. The Ten Features Your Web Application Monitoring Software Must Have. Executive Summary

Getting Started Using Project Photon on VMware Fusion/Workstation

<Insert Picture Here> Oracle Database Support for Server Virtualization Updated December 7, 2009

Managed Servers ASA Extract FY14

Virtual Private Systems for FreeBSD

Selling Virtual Private Servers. A guide to positioning and selling VPS to your customers with Heart Internet

Linux Server Support by Applied Technology Research Center. Proxy Server Configuration

nitrobit update server

GroundWork Monitor Open Source Installation Guide

Red Hat Enterprise Linux 6 Server:

PARALLELS CLOUD SERVER

Parallels Plesk Automation

Thomas Fahrig Senior Developer Hypervisor Team. Hypervisor Architecture Terminology Goals Basics Details

ENTERPRISE LINUX SECURITY ADMINISTRATION

Maximizing SQL Server Virtualization Performance

Do Containers fully 'contain' security issues? A closer look at Docker and Warden. By Farshad Abasi,

RED HAT ENTERPRISE LINUX 7

Deployment Guide. How to prepare your environment for an OnApp Cloud deployment.

FleSSR Project: Installing Eucalyptus Open Source Cloud Solution at Oxford e- Research Centre

Getting Even More Out of OpenEdge in a Virtualized Environment

DTC & DTC-Xen Running a VPS business with Xen Thomas Goirand, GPLHost CEO. Xen Summit Asia at Intel 2009

Novell Remote Manager Administration Guide

Full and Para Virtualization

Supported Platforms. HP Vertica Analytic Database. Software Version: 7.1.x

Nixu SNS Security White Paper May 2007 Version 1.2

GL-550: Red Hat Linux Security Administration. Course Outline. Course Length: 5 days

Hands-On Microsoft Windows Server 2008

Storage Management for the Oracle Database on Red Hat Enterprise Linux 6: Using ASM With or Without ASMLib

Cloud Server. Parallels. An Introduction to Operating System Virtualization and Parallels Cloud Server. White Paper.

1 Discussion of multithreading on Win32 mod_perl

How To Use Ngnix (Php) With A Php-Fpm (Php-Fmm) On A Web Server (Php5) On Your Web Browser) On An Ubuntu Web Server On A Raspberry Web 2.5 (Net

Avnet Guide to Oracle: Oracle Linux

Transcription:

Advanced Settings Oct 10, 2011 Igor Seletskiy CEO, CloudLinux

Linux OS based on RHEL source RPMs Binary compatible with RHEL 5.x/6.x and CentOS 5.x/6.x Made for Shared Hosting Companies Focus on Stability and Security Excellent, free 24/7 support Affordable for Companies of any Size CloudLinux delivered patches for several local exploits days before RHEL and CentOS

Lightweight resource limits CPU/Concurrent Connection/Memory limits Transparent to administrator Easy to deploy to CentOS/RHEL servers No need to setup per customer limits Easy to monitor resources usage on per user bases

One customer usually the cause of majority of downtimes Limiting resource usage for a customer his usage spikes will prevent issues for other customers Hard & expensive to track Takes time to track, which results in downtime for the server.

Better stability No server slow downs No need to suspend customers due to resource abuse Simplifies up sell to higher plans / VPS Ability to track usage on per customer bases Less support Improved security Better density

We deployed CloudLinux on our shared hosting servers, and we have seen immediate improvement in reliability. Ditlev Bredah, CEO UK2 Group We deployed CloudLinux on our shared hosting servers, and we have seen immediate improvement in reliability. Now we want to offer the same solution to our dedicated server customers. Emmanuel Vivar, CEO HostDime

Resource Limits CPU Memory Connections IO Priorities (limits coming soon) Ability to change limits on the fly Ability to see current & historic usage Easy way to pin-point abusers

Kernel level technology modified CPU scheduler cgroups/bean counters Apache module talks to kernel Works with any technology: cgi, mod_php, fcgid, MPT ITK, ruid2, LiteSpeed, etc PAM module for shell/cron jobs

/etc/container/ve.cfg lvectl ubc /proc/lve/list /proc/user_beancounters /etc/sysconfig/lve

CloudLinux 5.x Based on 2.6.18 kernel UBC memory limits disabled by default Migration thread per core Live ncpu change since lve0.8.42 kernel gresecurity TPE patch CloudLinux 6.x Based on 2.6.32 cgroups memory limits always enabled No migration processes Live ncpu changes No grsecurity TPE patch (yet) Performance optimization still in progress

/etc/sysctl.conf fs.proc_can_see_other_uid=1 fs.proc_user_gid=0

Different way to calculate 1 per LVE, instead of per process # sysctl -w kernel.full_loadavg=1 Accounting for uninterruptable processes

0 means disabled mod_php, LiteSpeed not supported Needs to fork to start counting Virtual memory vs real memory usage. What happens when user hits memory limit

Number of cores per LVE 1 migration thread per enabled core Virtualized /proc/cpuinfo

# lvectl set XX ncpu 2 force Only CL6 or lve0.8.42 & later

Smallest limit wins 1 core server, ncpu=1, cpu=25% -- true limit = 25% 2 core server, ncpu=1, cpu=25% -- true limit = 25% 4 core server, ncpu=1, cpu=25% -- true limit = 25% 8 core server, ncpu=1, cpu=25% -- true limit ~ 12% 16 core server, ncpu=1, cpu=25% -- true limit ~6% 16 core server, ncpu=2, cpu=25% -- true limit ~12% 16 core server, ncpu=4, cpu=25% -- true limit = 25%

No more NCPU CPU will automatically adjust NCPU parameter --core specifying speed on per core bases. 50% -- half a core, 150% -- 1.5 cores.

# lveinfo --from='2010-10-10' --to='2010-10-15' -o cpu_max --display-username ID acpu mcpu lcpu aep mep lep MemF MepF web2 5 10 10 14 25 25 4 342 web1 3 8 10 6 18 25 0 0 ID acpu mcpu lcpu aep mep lep MemF MepF User or LVE id Average CPU usage Max CPU usage CPU Limit Average Number of Concurrent Connections Max Number of Concurrent Connections Limit on Concurrent Connections Out Of Memory Faults Concurrent Connections faults

508 Concurrent connections (maxentryprocs) 500 Either server/script error or memory limits Use lve-stats by-fault to figure out the issue CPU limit will slow down the site, but it will not cause it to fail.

physical memory instead of virtual memory Processes share memory Allocated memory doesn t mean used memory Copy on write OOM killer will kill processes if LVE hits memory limit

Number of Processes CPU Weight Stats in /proc/user_beancounters

lvestats-server binary Polls data ever 5 seconds - Updates /var/lve/info Writes to database every minute Sqlite db /var/lve/lveinfo.db Can write to centralized MySQL/PostgreSQL Data is read via lveinfo Centralized portal coming soon

/etc/sysconfig/lvestats db_type: postgresql, mysql, (sqlite) server_id unique id for the server Required DB server Will have to create user/db/tables manually

Part of lve_wrapper package Allows to run anything inside LVE # lve_suwrapper 300 service mysql restart Useful for any system background/cron jobs

Cron Vixie-cron /etc/sysconfig/crond LVE_DISABLE LVE_START_UID Will be supplanted by pam_lve

session required pam_lve.so 500 /etc/pam.d/sshd /etc/pam.d/crond works on PAM level When you su/sudo to root from regular user you will still be inside LVE

httpd.conf, modhostinglimits.conf AllowedHandlers Support regexp Daemon based software: mod_fcgid, mod_cgid, other APR patch to start new processes via suexec

Tries to use all the cores on the server fix by limiting the number of threads to the available processors to 1. This can be done by editing config.xml & policy.xml files /usr/local/lib/imagemagick-[version]/config/policy.xml /usr/local/lib/imagemagick-[version]/config/config.xml Setting: <policy domain="resource" name="thread" value="1"/>

# yum install yum-protectbase Edit /etc/yum/pluginconf.d/rhnplugin.conf Add: [cloudlinux-x86_64-server-5] protect = 1 [cloudlinux-base] protect = 1

You can meet us at booth #4 If you rate my survey, I'll hook you up with $20 cpcache. Go to this address to take the survey: http://go.cpanel.net/b33, and come up to the podium once you've completed it.