Git Product home page Git Product logo

alminium_spanner's Introduction

alminium_spanner

Google Cloud Spanner Playground.Spannerに適当にデータを入れたりするアプリケーション。

Usage

環境変数

SPANNER_DATABASE

required. example projects/gcpug/instances/gcpug-shared-instance/databases/sinmetal

STACKDRIVER_PROJECT

required. example gcpug

RUN_WORKS

optional. 中で動かす処理を指定する。 以下の処理がそれぞれgoroutineで実行される。 複数指定する場合は , で区切って記述する。 example InsertTweet,ListTweet

  • InsertBenchmarkTweet
  • InsertTweet
  • InsertTweetCompositeKey
  • InsertTweetHashKey
  • InsertTweetUniqueIndex
  • ListTweet
  • ListTweetResultStruct
  • InsertBenchmarkJoinData

BENCHMARK_TABLE_NAME

InsertBenchmarkTweet の時に利用する。 InsertするTableName

BENCHMARK_COUNT

InsertBenchmarkTweet の時に利用する。 Insertする行数

InsertBenchmarkJoinData で大量のデータをTableにInsertする

10億件とか自分のPCで動かしてるつらいので、Compute Engineに適当にやってもらおう。

準備

Cloud Storage上にビルドしたバイナリを置いておく。 以下の例では gs://bin-sinmetal/alminium.bin を置いている。

DataをぶっこむCompute Engineを作成する

Startup Scriptで勝手に動いて終わったら、自分自身を削除するようにしておく。 リトライなどは入っておらず、Preemptible VMを使うことは考慮していない。

bench_startup_script.sh の項目を修正する

export STORAGE_PATH=gs://hoge/alminium.bin
./start.sh

alminium_spanner's People

Contributors

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