GithubHelp home page GithubHelp logo

charm-infra-mssql's Introduction

Overview

This is an infrastructure Juju charm for Microsoft SQL server for Linux. It uses the operator framework, and supports High Availability (HA) via the hacluster subordinate charm.

Deployment

The Microsoft SQL Server EULA must be explicitly accepted via the accept-eula charm config before deploying the charm. We also need set the vip used by the pacemaker cluster for HA:

juju deploy ./mssql.charm --num-units 3 \
    --config accept-eula=true \
    --config vip="<VIP_ADDRESS>"

juju deploy cs:hacluster mssql-hacluster \
    --config failure_timeout=60 \
    --config cluster_recheck_interval=120

juju add-relation mssql mssql-hacluster

Scale-out

At any point in time, you can add more SQL Server instances via:

juju add-unit mssql -n 2

The existing replicated databases will be synchronized on the new nodes, once they join the cluster.

Microsoft SQL Server Utility

To communicate with the database, the sqlcmd utility comes handy. Instructions to install it on Ubuntu are available here.

An example of command to connect to the database would be:

sqlcmd -S 10.13.114.200 -U "<DB_USER_NAME>" -P "<DB_USER_PASSWORD>"

To find out the SA password, use the get-sa-password Juju action:

juju run-action --wait mssql/leader get-sa-password

charm-infra-mssql's People

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

abuelodelanada

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.