Skip to content

Latest commit

 

History

History
51 lines (39 loc) · 1.45 KB

README.md

File metadata and controls

51 lines (39 loc) · 1.45 KB

Autoscaler tool for Cloud Spanner

Autoscaler

Validating editor for Autoscaler configuration.
Home · Scaler component · Poller component · Forwarder component · Terraform configuration · Monitoring

Overview

This directory contains a simple web-based autoscaler config file editor that validates that the JSON config is correct - both for JSON syntax errors and that the config has the correct set of parameters and values.

For GKE configurations, a YAML ConfigMap equivalent is displayed below.

While directly editing the YAML configMap for GKE is not supported, you can paste the configmap into the editor, and it will be converted to JSON for editing and validation.

Usage

Build the editor and start the HTTP server on port 8080:

npm run start-configeditor-server -- --port 8080

Then browse to http://127.0.0.1:8080/

Command line config validation

The JSON and YAML configurations can also be validated using the command line:

npm install
npm run validateConfigFile -- path/to/config_file