npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

coreos-cluster

v3.1.0

Published

Create a coreos cluster

Downloads

17

Readme

coreos-cluster Build Status NPM version

Create a fully functional CoreOs Cluster on Rackspace Cloud from any node.js application. A command-line version of coreos-cluster is available on npm as coreos-cluster-cli.

Quick Example

var cluster = require('coreos-cluster');

cluster.createCluster({
  numNodes: 10,
  type: 'performance',
  release: 'beta',
  keyname: 'my-ssh-keyname',
  credentials: {
    username: 'your-user-name',
    apiKey: 'some-key-here',
    region: 'iad'
  }
}, function(err, results) {
  // will callback with a functional cluster
});

Options

  • numNodes - required. Number of nodes. Clusters must have at least 3 nodes
  • type - Optional. performance or onMetal servers, defaults to performance vms
  • release - Optional. coreos release: stable (default), beta or alpha
  • keyname - Optional. Rackspace Cloud Servers SSH keyname. If not provided, will create a new ssh key and include in the results
  • flavor - Optional. The Rackspace Cloud Servers flavor. Defaults to performance1-1 flavor for performance and onmetal-compute1 for onMetal
  • privateNetwork - Optional. Guid for a rackspace private network. Will configure etcd to use the private network.
  • monitoringToken - Optional. Will configure the nodes for Rackspace cloud monitoring.
  • discoveryServiceUrl - Optional. Url for an existing cluster's discovery service. Will add numNodes to current cluster instead of create a new cluster.
  • update - Optional. Update strategies.
    • group - The update group, can be "master", "stable", "alpha", "beta", or a UUID for a custom CoreUpdate group.
    • server - Server to get updates from, e.g. https://public.update.core-os.net or https://customer.update.core-os.net
    • rebootStrategy - When to reboot after an update. E.g. best-effort, etcd-lock, reboot, off.
  • credentials - Required. The credentials for the create cluster call
    • username - Username for your rackspace account
    • apiKey - Api key for your rackspace account
    • region - Region to create the cluster in
    • useInternal - Optional, use local service net interface if calling from Rackspace Cloud machines

Advanced Usage Example

var cluster = require('coreos-cluster');

cluster.createCluster({
  numNodes: 10,
  type: 'performance',
  release: 'beta',
  keyname: 'my-ssh-keyname',
  discoveryServiceUrl: 'https://discovery.etcd.io/some-guid-here',
  privateNetwork: '4c371711-44ae-15ab-86af-45438fb96a15',
  monitoringToken: 'your-monitoring-token',
  update: {
      group: '0a809ab1-c01c-4a6b-8ac8-6b17cb9bae09',
      server: 'https://customer.update.core-os.net/v1/update/',
      rebootStrategy: 'best-effort'
  },
  credentials: {
    username: 'your-user-name',
    apiKey: 'some-key-here',
    region: 'iad'
  }
}, function(err, results) {
  // will callback with a details of the added nodes
});

Installation

npm install coreos-cluster

Next Steps

As coreos-cluster is built on pkgcloud, the next step is to add a provider option that allows you to use different compute providers within pkgcloud.