A simple Mediawiki bundle

This bundle deploys a Mediawiki, with MariaDB. Unlike the the wiki-simple bundle, this one is designed for scalability out of the box by using memcached for mediawiki and putting the entire thing behind an haproxy.

Usage

You can deploy the single bundle with:

juju deploy wiki-scalable

After deployment you need to expose the Mediawiki service, either via the GUI or the CLI:

juju expose loadbalancer

Then run a juju status loadbalancer to get the public address. The browse to that address in your browser to configure and use the wiki.

Scale out usage

You can add and remove more mediawiki instances to horizontally scale:

juju add-unit wiki

This can be done without service interruption.

Bundle configuration

  • wiki wiki Show configuration
    debug
    False
    name
    Please set name of wiki
    skin
    vector
  • memcached memcached Show configuration
    request-limit
    -1
    slab-page-size
    -1
    allow-ufw-ip6-softfail
    True
    nagios_context
    juju
    disable-large-pages
    False
    disable-cas
    False
    connection-limit
    1024
    udp-port
    0
    min-item-size
    -1
    threads
    -1
    disable-auto-cleanup
    False
    factor
    1.25
    tcp-port
    11211
    extra-options
    size
    768
  • loadbalancer loadbalancer Show configuration
    sysctl
    default_retries
    3
    global_group
    haproxy
    monitoring_stats_refresh
    3
    default_options
    httplog, dontlognull
    global_user
    haproxy
    monitoring_password
    changeme
    default_mode
    http
    default_timeouts
    queue 20000, client 50000, connect 5000, server 50000
    global_log
    127.0.0.1 local0, 127.0.0.1 local1 notice
    global_spread_checks
    0
    monitoring_allowed_cidr
    127.0.0.1/32
    monitoring_username
    haproxy
    default_log
    global
    package_status
    install
    services
    - service_name: haproxy_service service_host: "0.0.0.0" service_port: 80 service_options: [balance leastconn] server_options: maxconn 100
    global_maxconn
    4096
    monitoring_port
    10000
    global_debug
    False
    nagios_context
    juju
    global_quiet
    False
    enable_monitoring
    False
  • mysql mysql Show configuration
    vip_iface
    eth0
    block-size
    5
    tuning-level
    safest
    rbd-name
    mysql1
    query-cache-size
    -1
    query-cache-type
    OFF
    binlog-format
    MIXED
    ha-mcastport
    5411
    max-connections
    -1
    preferred-storage-engine
    InnoDB
    vip_cidr
    24
    dataset-size
    80%
    ha-bindiface
    eth0