This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This will use osd.5 as an example | |
# Fork from: https://gist.github.com/cheethoe/49d9c1d0003e44423e54a060e0b3fbf1 | |
# ceph commands are expected to be run in the rook-toolbox | |
1) disk fails | |
2) remove disk from node | |
3) mark out osd. `ceph osd out osd.5` | |
4) remove from crush map. `ceph osd crush remove osd.5` | |
5) delete caps. `ceph auth del osd.5` | |
6) remove osd. `ceph osd rm osd.5` | |
7) delete the deployment `kubectl delete deployment -n rook-ceph rook-ceph-osd-id-5` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GET /<something>/_update_by_query?pretty | |
{ | |
"query": { | |
"bool": { | |
"must_not": [ | |
{ | |
"match_phrase": { | |
"tags.keyword": { | |
"query": "parsed" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#twRO 09062016 | |
[台灣 - GNJoy] | |
ip 218.32.4.151 | |
port 6900 | |
master_version 5 | |
version 211 | |
serverType twRO | |
serverEncoding Big5 | |
charBlockSize 144 | |
storageEncryptKey 0x050B6F79, 0x0202C179, 0x00E20120, 0x04FA43E3, 0x0179B6C8, 0x05973DF2, 0x07D8D6B, 0x08CB9ED9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cloud-config | |
users: | |
- name: "<<USERNAME>>" | |
passwd: "<<PASSWORD>>" | |
groups: | |
- "sudo" | |
- "docker" | |
coreos: | |
etcd2: |
#Introduction:
When working with MongoDB, list and dict objects are often used for storing dynamic size of data. However, the original tastypie and DRF do not support serialising these fields into JSON. Thus, some overriding functions are required in order to make them work. This gist presents the guideline for how to handle list objects in Django using Tastypie.
- Django-nonrel
- djangotoolbox
- django-mongodb-engine
- tastypie
- MongoDB 3