- Django標準の
DATABASES
でDBを定義し、DATABASE_ROUTERS
でルーティングを定義したクラスを書けばほぼ行けそう。 - 3rd-Partyはレプリカ遅延のアプローチを提供しているので、使うならPJに合うものを選定・もしくは自前実装すること。
- 以下のドキュメントを参照のこと。読み取りのスケーリングに効果的な機能である。
- Amazon Aurora MySQL でのレプリケーション - Amazon Aurora
DATABASES
でDBを定義し、DATABASE_ROUTERS
でルーティングを定義したクラスを書けばほぼ行けそう。Copyright (c) 2014 The Go Authors. All rights reserved. | |
Redistribution and use in source and binary forms, with or without | |
modification, are permitted provided that the following conditions are | |
met: | |
* Redistributions of source code must retain the above copyright | |
notice, this list of conditions and the following disclaimer. | |
* Redistributions in binary form must reproduce the above | |
copyright notice, this list of conditions and the following disclaimer |
日時: | 2024-02-01 |
---|---|
作: | 時雨堂 |
資料 バージョン: | 2024.1 |
GitHub URL: | https://github.com/shiguredo/momo |
製品 URL: | https://momo.shiguredo.jp/ |
<details> | |
<summary>押してみそ?</summary> | |
な? | |
```pl | |
use strict; | |
``` | |
どう? | |
</details> |
更新: | 2017-09-26 |
---|---|
作者: | @voluntas |
作者サイト: | http://voluntas.github.io/ |
バージョン: | 1.2.1 |
セッション日時: | 2017-09-24 14:20 - 15:00 |
セッション場所: | 5号館3F |
This snippet makes Vim automatically continue/end lists in insert mode, similar to the way word processors do:
It supports ordered lists with markers like 1.
and unordered lists with -
markers (because those are the markers I use.)
(It's particularly useful when using an iOS keyboard where punctuation and numerals are slow to access.)
(2019/04 追記 こちらの情報は非常に古く、またRC版での結果となります。記録として残していますが参考になさらないでください)
CyberAgent エンジニア Advent Calendar 2014 2日目です。
昨日に引き続き、秋葉原ラボの柿島が担当します。仕事ではHadoopクラスタの運用を中心に、秋葉原ラボのインフラ/ミドルウェアまわりを担当しています。今年はHadoop、mesos、Aerospikeと分散型のシステムを触る機会が多い1年でした。
この記事のテーマはRedis Clusterです。Redis Clusterが使えるようになるRedis 3.0.0は10月にRC1がリリースされました。2015年のQ1にstableリリースを目指しているようです。
require 'json' | |
require 'uri' | |
require 'net/https' | |
class Slack | |
def initialize(settings) | |
@host = settings["host"] | |
@endpoint = settings["endpoint"] | |
@token = settings["token"] | |
end | |
def send_message(message, username="kussan-bot", icon_emoji=":kussan:", channel="#develop") |
#!/bin/sh | |
# -*- mode:sh -*- | |
version=$1 | |
if [ "x$1" = "x" ] ; then | |
exit 1 | |
fi | |
major=$(echo $version | awk -F "." '{print $1}') | |
minor=$(echo $version | awk -F "." '{print $2}') | |
micro=$(echo $version | awk -F "." '{print $3}') |