Giter Club home page Giter Club logo

cloud-costs's Introduction

Server Cost Comparison

This is the source code for Scalyr's Cloud Cost Calculator tool. You can read all about it in this blog post.

Contributions are welcome! We're open to any sort of suggestions. Any graphic designers out there who feel like cleaning up the page design are welcome to give it a whack.

We're especially interested in getting data for additional service providers, including some non-cloud hosting services. To contribute, just create a JavaScript file listing each offering from that provider. Your file should contain a series of function calls like this:

	serverChoices.push({
	  "provider": "Google",
	  "region": "Europe",
	  "location": "Europe West",
	  "serverType": "n1-highcpu-4-d",
	  "reservationType": "hourly",
	  "term": "Hour",
	  "termMonths": 0.0,
	  "upfrontCost": 0.0,
	  "hourlyCost": 0.369,
	  "cores": 4.0,
	  "ramMB": 3686.4,
	  "diskMB": 1812480.0,
	  "flashMB": 0.0,
	  "networkMbps": 0.0
	});

Look at files like linode.js for an example. Each call defines a single combination of server type, data center location, lease type, or any other parameters as appropriate to this service provider. The fields are interpreted as follows:

FieldMeaning
providerName of the company offering this server.
regionWhat part of the world the server is in. Use "N. America", "S. America", "Europe", "Asia", "Africa", or "Australia".
locationThe service provider's name for this location.
serverTypeThe service provider's name for this server configuration.
reservationTypeThe service provider's name for this lease term or reservation type.
termWhich category the lease / reservation falls into: Hour, Month, Year, or "3 Years".
termMonthsHow many months the lease / reservation lasts for; 0 for on-demand / by-the-hour services.
upfrontCostAny fixed, up-front cost for this offering, in dollars.
hourlyCostAny per-hour cost for this offering, in dollars.
coresNumber of CPU cores (or equivalent).
ramMBMemory size, in MiB.
diskMBDisk size, in MiB. (SSD should not be included in this value; report 0 for SSD-only servers.)
flashMBSSD storage size, in MiB.
networkMbpsBundled/free network bandwidth, in Mbps (megabits per second). Note, this value is not currently used, but may be used in a future version of the tool.

You can send us a pull request, or just e-mail us the JavaScript file and we'll add it in.

For questions, suggestions, feedback, or anything else: [email protected].

cloud-costs's People

Contributors

steve-scalyr avatar

Watchers

 avatar  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.