Skip to content

Instantly share code, notes, and snippets.

View rimms's full-sized avatar

IMAMASU Ryohei rimms

View GitHub Profile
@rimms
rimms / zknodes.rst
Created June 7, 2013 05:27
Jubatus の ZooKeeper ノード一覧
+----------+--------------+----------+----------+--------------+-------------------+-------------------------------------------+
| /jubatus | /config | /type | /name | config の内容が書き込まれる |
+ +--------------+----------+----------+--------------+-------------------+-------------------------------------------+
| | /actors | /type | /name | /config_lock | /rlock_0000000001 | jubaserver 起動時に作成される |
+ + + + + +-------------------+-------------------------------------------+
| | | | | | /wlock_0000000001 | jubaconfig で config 書込み中に作成される |
+ + + + +--------------+-------------------+-------------------------------------------+
| | | | | /nodes | /ip_port | jubaserver の IPアドレス と ポート番号 |
+ + +
@rimms
rimms / status_engine.rst
Last active December 22, 2015 17:39
機械学習エンジンごとの取得情報

機械学習エンジンごとの取得情報

目的/考え方

  • Jubatus を運用する上で、以下の観点での情報が必要と考える。
    • 学習リクエストが正しく到達したことを確認できる情報
@rimms
rimms / zknodelist.rst
Last active December 26, 2015 04:49
ZK node list

ZooKeeper上のノード一覧

1 | /jubatus | False | False |
@rimms
rimms / 01_summary.rst
Last active December 26, 2015 05:18
ZooKeeper の各ノードが期待する状態ではない時の振る舞い(案)

目的

Jubatus は ZooKeeper 上のリソースを操作するが、そのリソースが期待する状態ではなかった場合の動作について、明確な方針がない。

以下を定義する。

  • ZooKeeper 上のリソースの CRU(D) 操作に関する方針
@rimms
rimms / 01_summary.rst
Last active December 27, 2015 01:29
異常処理方針
@rimms
rimms / 01_intro.rst
Last active December 28, 2015 15:59
スタンドアロンモード冗長化構成 運用上の注意点

下図のようなスタンドアロンモードを冗長化した運用環境を想定した際に、発生しうる事象と回避策を明文化する。

スタンドアロン冗長化構成にて運用する目的

  1. 可用性・耐障害性性の向上
    • Jubatus を冗長化させることによる障害発生時のサービス停止に対する信頼性の向上
  2. トラフィックの負荷分散
@rimms
rimms / 01_improve_get_status.rst
Last active December 29, 2015 14:59
get_status拡張
@rimms
rimms / gist:8434705
Created January 15, 2014 11:36
get_status_example

standalone mode

{'xx.x.xxx.xxx_9199': {'PROGNAME': 'jubaclassifier',
                       'RSS': '5488',
                       'SHR': '4684',
                       'VERSION': '0.5.0',
                       'VIRT': '243352',
                       'clock_time': '1389784846',
                       'configpath': 'config/classifier/arow.json',
@rimms
rimms / gist:9107551
Last active August 29, 2015 13:56
Proxyの現状の動作と仕様変更(案)

現状の動作

Proxy-Server間のタイムアウト

  • Proxy から Server の通信処理(全体)が、 interconnect_timeout を超えると、 msgpack::rpc::TIMEOUT_ERROR を返却する。
    • ある Server との通信でタイムアウトが発生したというのは、異なる意味付け。「Proxy 処理(転送手続き)のタイムアウト」という意味になっている。
    • 本タイムアウトが発生した場合は、結果受付中の通信をすべてキャンセルする。
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import subprocess
from jubatus.common import Datum
from jubatus.recommender import client
NAME = "test";
PORT = 9199