GithubHelp home page GithubHelp logo

ddzhen / stardog-release Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stardog-union/stardog-release

0.0 1.0 0.0 82 KB

BOSH release for http://stardog.com

License: Apache License 2.0

Shell 88.82% HTML 11.18%

stardog-release's Introduction

Stardog Release

This BOSH configuration currently supports AWS and Bosh Lite deployments of Stardog Cluster.

Usage

First, make sure to install the BOSH Command Line Interface and spiff (v1.0.7 or newer).

AWS

To use this BOSH release on AWS, follow the next steps:

  1. First, set up MicroBOSH on AWS. Note: when you set up your security group permissions, remember to open ports 5820, 5821, 2888, and 3888, or whichever you choose for your Stardog Cluster.

  2. Target your BOSH Director instance on AWS, and log in using admin for user and password.

     $ bosh target BOSH_HOST
     $ bosh login
     Your user: admin
     Enter password: *****
    

    Where BOSH_HOST is the IP/hostname of your BOSH (Lite) deployment.

  3. Clone this project and cd to it.

     $ git clone https://github.com/complexible/stardog-release.git
     $ cd stardog-release
    
  4. Create a new release:

     $ ./create_release path/to/your/stardog-license-key.bin
    

    This step will place your license in the BOSH release and download the necessary binaries from an S3 blobstore and put them within this repository. Then it will upload all the artifacts to your BOSH Director.

  5. Create a manifest for your deployment

    1. First, create a configuration file to describe your AWS setup. Your my-network.yml file should look like:

      ---
      meta: 
        networks:
          subnet: YOUR_SUBNET_ID

      Where you specify the subnet id according to your AWS setup in the first step (see BOSH CPI).

    2. Next, create a manifest for your deployment using the make_manifest script:

      $ ./templates/make_manifest aws-ec2 my-network.yml
      

    This will generate a manifest file by merging your configuration with the defaults.

  6. Now you're ready to deploy:

    $ bosh deploy
    

Warden

In order to deploy to BOSH Lite โ€“ a local, development environment โ€“ you need the following:

  1. Install BOSH Lite following the instructions in the project's README

  2. Start vagrant with the virtualbox provider per the instructions.

  3. Upload the Warden stemcell to your BOSH Lite Director:

     $ bosh upload stemcell https://bosh.io/d/stemcells/bosh-warden-boshlite-ubuntu-trusty-go_agent
    
  4. Create a new release:

     $ ./create_release path/to/your/stardog-license-key.bin
    
  5. Create a manifest for your deployment:

    $ templates/make_manifest warden
    $ bosh -n deploy
    
  6. Now you're ready to deploy:

    $ bosh deploy
    

Configuration

When building your manifest you can also pass more properties to your deployment manifest, such as:

---
properties:
  stardog:
    java_args:
      "-Xmx32g -Xms32g -XX:MaxDirectMemorySize=16g -Dfile.encoding=UTF-8"

And then suffix the make_manifest script arguments:

$ ./templates/make_manifest aws-ec2 ... my-properties.yml

Troubleshooting

You can use the BOSH logs to troubleshoot your deployment as it's specified in their docs (access to the machines is done via bosh ssh or directly via ssh <ip_addr>). $STARDOG_HOME is located in /var/vcap/store/sd-home, wherein the logs and configuration is also located.

AWS

In order to log in in SSH to AWS deployments via the BOSH Director you need to add your public key to your ssh agent then specify the gateway and user on login:

ssh-add path/to/your/bosh.pem
bosh ssh stardog 1 --gateway_host <director_ip_addr> --gateway_user vcap --strict_host_key_checking no

The password for the user vcap is c1oudc0w.

Otherwise you can log in directly (if your subnet has Public IPs enabled):

ssh-add path/to/your/bosh.pem
ssh vcap@<instance_ip_addr>
  • NOTE: The following issue has been found to happen when deploying the MicroBOSH instance with Mac OS X, related to one of bosh dependencies (fog-aws v0.1.2):
$ bosh micro deploy STEMCELL-PATH
/Library/Ruby/Gems/2.0.0/gems/fog-aws-0.1.2/lib/fog/aws/auto_scaling.rb:4:in `<class:AutoScaling>': uninitialized constant Fog::AWS::CredentialFetcher (NameError)
from /Library/Ruby/Gems/2.0.0/gems/fog-aws-0.1.2/lib/fog/aws/auto_scaling.rb:3:in `<module:AWS>'
from /Library/Ruby/Gems/2.0.0/gems/fog-aws-0.1.2/lib/fog/aws/auto_scaling.rb:2:in `<module:Fog>'
from /Library/Ruby/Gems/2.0.0/gems/fog-aws-0.1.2/lib/fog/aws/auto_scaling.rb:1:in `<top (required)>'
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:69:in `require'
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:69:in `require'
from /Library/Ruby/Gems/2.0.0/gems/fog-1.27.0/lib/fog/aws.rb:2:in `<top (required)>'
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:69:in `require'
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:69:in `require'
from /Library/Ruby/Gems/2.0.0/gems/fog-1.27.0/lib/fog.rb:23:in `<top (required)>'
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:69:in `require'
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:69:in `require'
from /Library/Ruby/Gems/2.0.0/gems/bosh-registry-1.2962.0/lib/bosh/registry.rb:10:in `<top (required)>'
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:69:in `require'
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:69:in `require'
from /Library/Ruby/Gems/2.0.0/gems/bosh-registry-1.2962.0/bin/bosh-registry:3:in `<top (required)>'
from /usr/bin/bosh-registry:23:in `load'
from /usr/bin/bosh-registry:23:in `<main>'

In order to fix it, please follow these instructions.

stardog-release's People

Contributors

schwarzmx avatar svrc avatar kendall avatar

Watchers

James Cloos avatar

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.