mongodb-azure-docker:MongoDB-Azure-Ansible的装饰版本

  • I4_175229
    了解作者
  • 93.5KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-06-10 18:11
    上传日期
Windows Azure映像上的MongoDB 此docker文件为MongoDB-Azure-Ansible创建docker映像,该镜像通过Windows Azure Cloud创建和配置MongoDB群集,使用MongoDB管理服务或(MMS)来管理备份和还原过程,并使用NewRelic监视工具来跟踪运行的服务MongoDB服务器。 安装Docker 首先,请确保在主机上安装了Docker Engine,以获取有关更多信息。 复制Azure证书 如果您没有创建天蓝色证书,请阅读更多如何从此创建Azure证书,然后将这些证书复制到MongoDB-Azure-Ansible / cert $ cp cert.* MongoDB-Azure-Ansible/cert/ 编辑配置文件 通过修改云服务名称和部署服务名称来编辑Vagrantfile,该名称必须唯一 $ vi Mon
mongodb-azure-docker-master.zip
内容介绍
# Deploy MongoDB Cluster on Windows Azure This package is a libaray based on Ansible and Vagrant to deploy and manage a mongoDB cluster on Windows Azure. It installs and configures MMS (MongoDB Management System) over MongoDB Cloud also it uses NewRelic (A software analytics tool suite) to monitor MongoDB cluster servers and the running services on your cluster. The following steps describe how to manage monogDB services (Mongod), automate backup/restore over cloud, monitor mongo services and monitor all running services in your infrastructure to make sure that it satisfies the availability and consistency of Mongo database. ## Table of Contents * [Basic Cluster Architecture](#Basic_Cluster_Architecture) * [Install and Configure Vagrant](#Install_and_Configure_Vagrant) * [Install Windows Azure CLI](#Install_Windows_Azure_CLI) * [Create and manage Azure's certificates](#Create_and_manage_Azure_certificates) * [Install and Configure Ansible](#Install_and_Configure_Ansible) * [Configure your Vagrant File](#Configure_your_Vagrant_File) * [Edit/Create Hosts file](#Edit/Create_Hosts_file) * [Configure secret and admin passwords](#Configure_secret_and_admin_passwords) * [NewRelic Server Monitor](#NewRelic_Server_Monitor) * [MongoDB Management Service (MMS)](#MongoDB_Management_Service) * [Start MongoDB Deployment](#Start_MongoDB_Deployment) * [Backup/Restore management using MMS](#BackupRestore_management_using_MMS) * [MongoDB Member Recovery](#MongoDB_Member_Recovery) <a name="Basic_Cluster_Architecture"/ rel='nofollow' onclick='return false;'> ## Basic Cluster Architecture ![Alt text](images/mongodb-azure-github.jpg "Basic Architecture") <a name="Install_and_Configure_Vagrant"/ rel='nofollow' onclick='return false;'> ## Install and Configure Vagrant **Install Vagrant on Ubuntu distribution:** $ sudo apt-get install vagrant but I suggest to install Vagrant Binary from [here](http://www.vagrantup.com/downloads.html) **Install Azure Vagrant Plugin** $ vagrant plugin install vagrant-azure **Download this dummy box that vagrant need to use the azure provider** $ vagrant box add azure https://github.com/msopentech/vagrant-azure/raw/master/dummy.box <a name="Install_Windows_Azure_CLI"/ rel='nofollow' onclick='return false;'> ## Install Windows Azure CLI **1. Ubuntu 12.04 LTS Precise Pangolin:** $ sudo apt-get install curl $ curl -sL https://deb.nodesource.com/setup | sudo bash - $ sudo apt-get install -y nodejs $ sudo npm install -g azure-cli **2. Ubuntu 14.04 LTS Trusty Tahr:** $ sudo apt-get install nodejs-legacy $ sudo apt-get install npm $ sudo npm install -g azure-cli $ azure info: _ _____ _ ___ ___ info: /_\ |_ / | | | _ \ __| info: _ ___/ _ \__/ /| |_| | / _|___ _ _ info: (___ /_/ \_\/___|\___/|_|_\___| _____) info: (_______ _ _) _ ______ _)_ _ info: (______________ _ ) (___ _ _) info: info: Microsoft Azure: Microsoft's Cloud Platform_ info: info: Tool version 0.9.5 help: help: Display help for a given command help: help [options] [command] help: help: Log in to an Azure subscription using Active Directory. Currently, the user can login only via Microsoft organizational account help: login [options] [username] help: help: Log out from Azure subscription using Active Directory. Currently, the user can log out only via Microsoft organizational account help: logout [options] [username] help: help: Open the portal in a browser help: portal [options] help: help: Commands: help: account Commands to manage your account information and publish settings help: config Commands to manage your local settings help: hdinsight Commands to manage HDInsight clusters and jobs help: mobile Commands to manage your Mobile Services help: network Commands to manage your Networks help: sb Commands to manage your Service Bus configuration help: service Commands to manage your Cloud Services help: site Commands to manage your Web Sites help: sql Commands to manage your SQL Server accounts help: storage Commands to manage your Storage objects help: vm Commands to manage your Virtual Machines help: help: Options: help: -h, --help output usage information help: -v, --version output the application version <a name="Create_and_manage_Azure_certificates"/ rel='nofollow' onclick='return false;'> ## Create and manage Azure's certificates **1. Download your Management Certificate for Azure CLI:** $ azure account download info: Executing command account download info: Launching browser to **http://go.microsoft.com/fwlink/?LinkId=254** help: Save the downloaded file, then execute the command help: account import <file> info: account download command OK keep this file in safe place. **2. Import the certificate to your azure account** $ azure account import myfile.publishsettings info: Executing command account import info: account import command OK **3. Check your account list:** $ azure account list info: Executing command account list data: Name Id Tenant Id Current data: -------- ------------------------------------ --------- ------- data: ACCOUNT b80dxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx undefined true info: account list command OK **4. Create an X.509 certificate to authenticate with Azure** $ openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout cert.pem -out cert.pem **5. Create Microsoft Parallel FX from the X.509 cert** #Enter the encryption password $ openssl pkcs12 -export -out cert.pfx -in cert.pem -name "My Cert" **6.Create service certificate to upload to Azure** $ openssl x509 -inform pem -in cert.pem -outform der -out cert.cer Now login to Azure management portal [here](https://manage.windowsazure.com) to upload .cer file certificate SETTINGS --> MANAGEMENT CERTIFICATES --> UPLOAD **7. Create RSA private keys** Do not do this step if you have a RSA private key to check use `ls ~/.ssh/` and skip to login keys Create RSA private key so that you can log in with your normal credentials $ ssh-keygen -t rsa Create login keys $ openssl req -new -x509 -key ~/.ssh/id_rsa -out ~/.ssh/ssh-cert.pem **8. Copy all certificates to cert directory** $ cp cert.* cert/ <a name="Install_and_Configure_Ansible"/ rel='nofollow' onclick='return false;'> ## Install and Configure Ansible **Ubuntu LTS 12.04** $ sudo apt-get install software-properties-common $ sudo apt-add-repository ppa:ansible/ansible $ sudo apt-get update $ sudo apt-get install ansible **Other Linux Distributions** to install on another Linux Distribution check out [Ansible Docs](http://docs.ansible.com/intro_installation.html) <a name="Configure_your_Vagrant_File"/ rel='nofollow' onclick='return false;'> ## Configure your Vagrant File **Open Vagrantfile, and edit the following lines:** azure.subscription_id = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' azure.storage_acct_name = 'YOUR_STORAGE_ACCOUNT' azure.vm_user = 'ahmed' # change to username on your local host azure.ssh_private_key_file = '/home/ahmed/.ssh/id_rsa' # change the path of id_rsa to yours azure.ssh_certificate_file = '/home/ahmed/.ssh/ssh-cert.pem' # change the path of ssh-cer.pem to yours .... azure.ssh_port = 2200 azure.tcp_endpoints = '40000:40000,40001:10100,40002:10400' **To Add new replica server uncomment the following block** where this section describes a n
评论
    相关推荐
    • mongodb-on-azure-workshop:Azure 上的 MongoDB 研讨会
      #Azure 上的 MongoDB 作者: 介绍 本次研讨会是在 Microsoft Azure 上使用 MongoDB 亲自动手的好机会。 本次研讨会的主要步骤是: 注册到 Microsoft Azure 注册到 MongoDB 管理服务 (MMS) 在 Azure 上创建单个 ...
    • azure-cosmos-db-mongodb-xamarin-getting-started:一个快速入门,演示如何使用Azu
      了解如何在完全启用了MVVM的Xamarin.Forms应用程序中将Azure Cosmos DB与MongoDB .NET API结合使用! 天蓝色宇宙DB-MongoDB-Xamarin开始 带有Xamarin的Azure Cosmos DB for MongoDB API快速入门 了解如何在完全启用...
    • prueb_azure
      香草JavaScript应用 通过GitHub的培训,指导和支持,学习在校园中建立和发展各种技术社区的技能。 :memo: 目录 :face_with_monocle: 关于 写大约1-2个描述项目目的的段落。 :chequered_flag: 入门 ...
    • mywebsite:我的网站代码(角度等)
      待办事项:*创建azure网站并尝试发布当前代码以使角度和节点运行*将mongodb添加到AZURE,完成(使用MongoLab创建了应用服务)*修改代码以与MongoLab连接一起使用*修改MongoLab实例以与网站一起使用(有一个很好的...
    • simple-image-server:基于MongoDBAzure Blob存储或Google Drive托管自己的图像服务
      基于MongoDBAzure Blob存储或Google云端硬盘托管自己的映像服务器 入门 支持平台 AWS S3存储 Google云端硬碟 Azure Blob存储 MongoDB GridFS 支持的格式 图片/ jpeg 图片/ png 图片/ Webp :laptop_computer: ...
    • Azure WebState
      使用Windows Azure搜寻大量(个体)Web信息并创建统计信息。
    • Azure WebState
      使用Windows Azure搜寻大量(个体)Web信息并创建统计信息。
    • liquibase-mongodb:Liquibase的MongoDB扩展
      Liquibase MongoDB扩展 目录 介绍 这是对MongoDB支持的Liquibase扩展。 结果是替代了现有的MongoDB演化工具。 它们中的大多数基本上是 shell方法的包装器, 方法从MongoDB 4.2开始不推荐使用。 为了调用特定于...
    • DocumentDB.OData:Azure DocumentDB OData 提供程序
      MongOData 是 MongoDB OData 提供程序。 请访问项目 Wike 页面以获取有关如何在您的项目中使用它的详细信息。
    • GaussDB_100_1.0.1-DATABASE-REDHAT-64bit.tar.gz
      guassdb100在redhat上安装包,单机部署的包,安装步骤请看我的文中介绍,经过大量实验搭建总结出来的文档