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

icecloud

v1.0.0

Published

launch a distributed build cluster with icecc

Downloads

7

Readme

icecloud

Launch a compute cluster running icecream for distributed compilation. Provides a simple CLI for launching and managing the compilation cluster, built on tinycloud and clicloud.

Note: This module launches clusters, which can cost real money. It is also still under development. Carefully monitor your usage!

mascot

install

Install as a CLI with

npm install icecloud -g

usage

To launch the cluster run

icecloud launch beast -k mykey -n 5

where beast is a name for your cluster, -k specifies the name of your key pair, and -n specifies the number of worker nodes. After a few minutes, run the setup using

icecloud setup beast -i mykey.pem

where -i specifies the location of your key pair file. If you get an error during setup saying timed out or ECONNREFUSED, just wait a few minutes and try again. This happens because instances take a variable amount of time to become ssh-ready.

Finally, login to the master node to run jobs

icecloud login beast master -i mykey.pem

Once on the master, setup whatever build environment you want that supports distributed compilation. When you start the build, it will use your cluster to complete tasks. See the example use case below for how to use this cluster to build Chrome.

example use case

One likely use case is performing distributed builds of Chrome. This is what the biggies do, and now you can do it too!

First launch your cluster, the m3.large instance type is recommended, as well as a large root volume (50gb should be enough)

icecloud launch chromeo -k mykey -n 5 -t m3.large -s 50

Run the icecc setup (as described above)

icecloud setup chromeo -i mykey.pem 

Now you need to set up the Chromium dev environment. This part has nothing to do with icecream or icecloud, but we made a sample script as an example if you want to try it out. Login to the master node

icecloud login chromeo master -i mykey.pem

then run the environment setup script (this will take ~30 min)

curl https://raw.githubusercontent.com/freeman-lab/icecloud/master/examples/chrome.sh >> chrome.sh
bash chrome.sh

Finally, start your distributed build

cd src
source ~/.bashrc
ninja -j 10 -C out/Release chrome

monitoring

The scheduler includes a monitoring tool. To connect to it, get the public IP of the scheduler using

icecloud list chromeo scheduler -i mykey.pem

Then ssh into the scheduler with X11 forwarding

ssh -i mykey.pem -X ubuntu@IP

And finally start the monitor

icemon -n $ICECC_NAME