Comments (19)
refs #73
from isucon6-final.
https://isucon6finaldev.blob.core.windows.net/dbf3a7dcbfd5cc8fc4386ce75a8b23098c3c97d4/index.html これを使えば大丈夫かも
from isucon6-final.
確認します
from isucon6-final.
@matsuu リポジトリのものを使うとこうなります。成果物を使えば大丈夫そうです。
現時点の問題としてはディレクトリを変更して起動できない点です。コピペして無理矢理起動すれば大丈夫そうです。
from isucon6-final.
@catatsuy azure用に書き換えてしまったのよくなかったですね。すみません。
azure用tagを作って、単体実行と分離しようかと思います。
from isucon6-final.
あー、勘違いしてました。
ディレクトリを変更して起動できない、たしかに。
代替方法考えます。
from isucon6-final.
Azure CLIを用意すれば、こんなシェルスクリプトでデプロイ可能です
#!/bin/sh
set -e
RESOURCE_GROUP="${RESOURCE_GROUP:-isucon6-final-dev}"
SSH_PUBLIC_KEY="${SSH_PUBLIC_KEY:-`cat ~/.ssh/id_rsa.pub`}"
PREFIX="${PREFIX:-i6f}"
# azure login
# azure config mode arm
azure group deployment create -f azuredeploy.json -p "{\"sshPublicKey\":{\"value\":\"${SSH_PUBLIC_KEY}\"},\"prefix\":{\"value\":\"${PREFIX}\"}}" -g ${RESOURCE_GROUP}
from isucon6-final.
ファイルの代わりにURI指定も可能でした。なのでこれでもok
azure group deployment create \
--template-uri https://isucon6finaldev.blob.core.windows.net/dbf3a7dcbfd5cc8fc4386ce75a8b23098c3c97d4/azuredeploy.json \
-p "{\"sshPublicKey\":{\"value\":\"${SSH_PUBLIC_KEY}\"},\"prefix\":{\"value\":\"${PREFIX}\"}}" \
-g ${RESOURCE_GROUP}
from isucon6-final.
azure account list
でIDを調べて、azure account set {ID}
をしてから実行したら実行できました!
from isucon6-final.
実行は出来ましたが、また同じエラー…
from isucon6-final.
成果物のJSONを手でダウンロードしてリトライ中
from isucon6-final.
AzureのDockerExtensionとansibleのdockerをinstallする処理がかち合っているように見えるのですが、AzureのDockerExtensionは必要ですか?
from isucon6-final.
要らないです。トラブルの元なので取り除きます
from isucon6-final.
セットアップ自体には成功したようですが、docker周りでエラーが出るのは変わりないので、取り除いた方が良さそうです。
from isucon6-final.
ansibleでmysqlの起動を30秒待ってからデータ流し込みを実施されているようですが、
/docker-entrypoint-initdb.d/に初期データを設置して読み込む機能があるので、それを使うほうがいいかもしれません。
https://hub.docker.com/_/mysql/
既に検討済でその方法だと別の問題が出るのあれば無視してくださいすみません。
from isucon6-final.
おもしろいですね。やりたい。
from isucon6-final.
試しにやってみます(30秒でもダメな時はあるので何とかしたいと思っていた)
from isucon6-final.
@matsuu 初回起動時に突っ込むようにしたので、sleepは消しておきます
from isucon6-final.
👍
from isucon6-final.
Related Issues (20)
- ISUCON6 本選当日の集合時間などについて
- azure cdnでポータルサイトをhttpsに HOT 4
- APIのポートを80に統一 HOT 1
- nodejs: [GET /img/0] リクエストがタイムアウトしました
- python: /var/www/app.py:364: Warning: (1265L, u"Data truncated for column 'y' at row 1") Oct 19 17:14:42 isu01 docker-compose[48766]: python_1 | 'y': point['y'] HOT 1
- perl: HOT 4
- kamipo TRADITIONAL HOT 2
- Server-Sent Eventsの仕様ではretryはミリ秒を自然数で指定する HOT 1
- Spark実装 HOT 1
- ベンチマーカー:GoのHTTP2クライアントで最初のバイトがロストするときがあるらしい HOT 4
- Perlのdocker内でcpan installにかなり時間がかかる HOT 5
- 競技者のAzure to Deployボタンを用意する HOT 1
- レギュレーションを用意する HOT 2
- ベンチマーカーの限界を探る
- ansibleデプロイ用のtarballを本番に移動 HOT 3
- リポジトリ公開
- 講評
- 裏話Night日程調整 HOT 3
- リポジトリ公開前にやること HOT 4
- ベンチマーク側を一発デプロイできるようにする HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from isucon6-final.