2006年1月13日金曜日

Xen 設定変更


Xen上のMovable Typeで、大規模なBlog(といっても10000エントリには達していないけど)のrebuildを行うと、頻繁にInternel Server Errorが発生する。



Date-Based ArchiveやCategory Archiveのテンプレートをいじって、なるべく軽くなる用にしているけど、それでもダメな時がある。



先ほどまでのXenの設定ではDomain-0に1.25GB、その上の仮想マシンに0.75GBをアサインしていたのだが、割り当てメモリを逆にしてみた。





つまり、仮想マシンに1.25GBを割り当てるようにした。

/etc/xen/auto/hixen.confはこんな↓感じ。


# -*- mode: python; -*-
#----------------------------------------------------------------------------
# Kernel image file.
kernel = "/boot/vmlinuz-2.6-xenU"
# Initial memory allocation (in megabytes) for the new domain.
memory = 1280
# A name for the new domain. All domains have to have different names,
# so we use the vmid to create a name.
name = "hixen"
# Which CPU to start domain on?
#cpu = -1 # leave to Xen to pick
#cpu = vmid # set based on vmid (mod number of CPUs)
#----------------------------------------------------------------------------
# Define network interfaces.
# Number of network interfaces. Default is 1.
#nics=1
# Optionally define mac and/or bridge for the network interfaces.
# Random MACs are assigned if not given.
#vif = [ 'mac=aa:00:00:00:00:11, bridge=xen-br0' ]
#----------------------------------------------------------------------------
#disk = [ 'file:/Xen-VirtualDiskFile,sda1,w' ]
disk = [ 'phy:hdc1,hdc1,w',
'phy:hdc2,hdc2,w' ]
#----------------------------------------------------------------------------
ip="192.168.0.113"
# Set netmask.
netmask="255.255.255.0"
# Set default gateway.
gateway="192.168.0.250"
# Set the hostname.
hostname= "hixen"
# Set root device.
root = "/dev/hdc2 rw"
# Sets runlevel 4 and the device for /usr.
extra = "2"
#============================================================================



これで安定するか、変わらないか。一応切り分けとして。


0 件のコメント:

コメントを投稿