Giter VIP home page Giter VIP logo

isucon9-final's Introduction

ISUCON9 本戦問題

ドキュメント

スペシャルサンクス

各言語移植

時間の無い中、移植にご協力いただき、誠にありがとうございます。

  • @ykzts 氏 (Ruby)
  • @kazeburo 氏 (Perl)
  • @shoma 氏 (PHP)

(GolangとPythonはさくらインターネット実装です。)

本番当日の動作環境

TBD

ローカルでのアプリケーションの起動

必要な環境

ウェブアプリケーションの起動方法

リポジトリをCloneし、

git clone [email protected]:chibiegg/isucon9-final.git
cd isucon9-final
(cd webapp/frontend && make)

実装言語を指定してBuildとUpをする。

export LANGUAGE=go
docker-compose -f webapp/docker-compose.yml -f webapp/docker-compose.${LANGUAGE}.yml build
docker-compose -f webapp/docker-compose.yml -f webapp/docker-compose.${LANGUAGE}.yml up

http://127.0.0.1:8080

ローカルでのベンチマーカーの起動

必要な環境

ベンチマーカーの起動方法

リポジトリをCloneして、ビルドを行う

git clone [email protected]:chibiegg/isucon9-final.git
cd isucon9-final
(cd bench && make)

ビルドされたバイナリは bench/bin/ 配下に配置されるため、ベンチマーカーのバイナリだけ起動する (bin/bench~~~)

(Mac の場合は バイナリ名のサフィックスに _darwin が、Linuxの場合はバイナリ名のサフィックスに _linux がつきます)

bench/bin/bench_darwin run --payment=<課金APIのアドレス> --target=<webappのアドレス> --assetdir=<フロントエンドのビルド結果が配置されたディレクトリ>
  • assetdirについて補足

    • assetdirは、ベンチマーカーがアプリケーションが正常動作しているかテストする際に用いられます
    • 当問題ではフロントエンドがVue.jsで実装されているため、webapp/frontend/dist を指定することになります
  • 出力が大変多いので、詳しく調査したい場合は teeコマンドなどでログに書き出すことをお勧めいたします

デプロイ

make archive
cd ansible
ansible-playbook -i hosts -u root -s -c paramiko -D playbook.yml

既知の問題

コンテスト開催中にも残っており、準備中に発覚しなかった問題。

  • 座席情報が誤っている #209

修正済み

  • Ruby実装で、データベースの環境変数参照が誤っていた #211

isucon9-final's People

Contributors

chibiegg avatar kazeburo avatar methane avatar misodengaku avatar notchi590 avatar shoma avatar tukejonny avatar ykzts 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.