Перейти к содержанию

Hypervisor - Xen: различия между версиями

Материал из Solipse Wiki
Строка 37: Строка 37:
Edit the postgresql.conf  
Edit the postgresql.conf  


    shared_preload_libraries = 'bdr'
shared_preload_libraries = 'bdr'
    wal_level = 'logical'
wal_level = 'logical'
    track_commit_timestamp = on
track_commit_timestamp = on
    max_connections = 100
max_connections = 100
    max_wal_senders = 10
max_wal_senders = 10
    max_replication_slots = 10
max_replication_slots = 10
    # Make sure there are enough background worker slots for BDR to run
# Make sure there are enough background worker slots for BDR to run
    max_worker_processes = 10
max_worker_processes = 10
 
    # These aren't required, but are useful for diagnosing problems
# These aren't required, but are useful for diagnosing problems
    #log_error_verbosity = verbose
#log_error_verbosity = verbose
    #log_min_messages = debug1
#log_min_messages = debug1
    #log_line_prefix = 'd=%d p=%p a=%a%q '
#log_line_prefix = 'd=%d p=%p a=%a%q '
 
    # Useful options for playing with conflicts
# Useful options for playing with conflicts
    #bdr.default_apply_delay=2000  # milliseconds
#bdr.default_apply_delay=2000  # milliseconds
    #bdr.log_conflicts_to_table=on
#bdr.log_conflicts_to_table=on

Версия от 13:21, 18 февраля 2016

Installation how-to http://gentoovps.net/xen-gentoo-installation/

XEN Ubuntu

apt-get install xen-hypervisor-amd64


LVM

apt-get install lvm2

Create physical volume

pvcreate /dev/

Create volume group

vgreate vg-xen /dev/

Activate volume group

vgchange -a y vg-xen

Create logic volume

lvcreate -L2000 -n xen1 vg-xen

postgresql bdr

echo "deb http://packages.2ndquadrant.com/bdr/apt/ wheezy-2ndquadrant main" > /etc/apt/sources.list.d/2ndquadrant.list
wget --quiet -O - http://packages.2ndquadrant.com/bdr/apt/AA7A6805.asc | apt-key add -
apt-get update

apt-get install postgresql-bdr-9.4-bdr-plugin

Edit the postgresql.conf

shared_preload_libraries = 'bdr'
wal_level = 'logical'
track_commit_timestamp = on
max_connections = 100
max_wal_senders = 10
max_replication_slots = 10
# Make sure there are enough background worker slots for BDR to run
max_worker_processes = 10

# These aren't required, but are useful for diagnosing problems
#log_error_verbosity = verbose
#log_min_messages = debug1
#log_line_prefix = 'd=%d p=%p a=%a%q '

# Useful options for playing with conflicts
#bdr.default_apply_delay=2000   # milliseconds
#bdr.log_conflicts_to_table=on