Skip to content

Instantly share code, notes, and snippets.

/etc/rc.conf
sendmail_enable="NO"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"
@pauldardeau
pauldardeau / gist:25bd3e093cae74e09c69f61ae39e26ef
Last active December 3, 2018 23:31
Recent Ceph All Flash
https://www.flashmemorysummit.com/English/Collaterals/Proceedings/2018/20180808_SOFT-201-1_Porter.pdf
https://www.flashmemorysummit.com/English/Collaterals/Proceedings/2018/20180808_SOFT-202-1_Liu.pdf
Prepare new OSD
ceph-disk prepare --cluster ceph --cluster-uuid c7ec4b12-4cee-11e8-bafa-5254006792da --fs-type xfs /dev/sda1 /dev/sda2
Activate new OSD
ceph-disk activate /dev/sda1
@pauldardeau
pauldardeau / gist:0081c7ccf2e58ad4d52fd609a9051cd0
Created January 4, 2017 23:11
all your loopback device space r belong to swift mp3
this is related to my dinky cloud jukebox (https://github.com/pauldardeau/cloud-jukebox). that's a fancy
way of saying a bunch of mp3 files stored in swift.
i run it on a vps (droplet!) with 2gb ram and 40gb disk
i continue to work on my cloud jukebox thingie
primarily by adding more of my music collection to my little saio swift cluster on a vps
as part of my goal of moving completely away from itunes
i’ve been doing a lot more of that lately, and i completely filled up (100%) my loopback storage device
it’s configured with standard 3 replicas (default)
@pauldardeau
pauldardeau / gist:17ffd67aa929f1c3a7b4c0df037552cb
Created December 8, 2016 17:22
A Look at Swift EC Pieces from Bottom-Up
A Look at Swift EC Pieces from Bottup-Up (December 8, 2016)
============================================================
Document Purpose
================
- Convey understanding of what the pieces are and how they fit together
- NOT intended to teach anything about EC
liberasurecode
@pauldardeau
pauldardeau / gist:ee7e1a5d95d2286608dfb3a8371c6185
Created December 6, 2016 18:41
Review of swift rolling upgrades
=============
Swift Rolling Upgrade
=============
Overview of upgrade process
~~~~~~~~~~~~~~~~~~~~~~~~~~~
1. Upgrade a single storage (ACO) node ('canary' node)
2. Observe upgraded storage node for problems or anomalies
3. Upgrade all other storage nodes (1 at a time)
4. Upgrade a single proxy node ('canary' node)
@pauldardeau
pauldardeau / gist:2b0557498137d921e0d0259e17c0164e
Last active December 6, 2016 22:23
Quick Intro to Ceph from Swift Perspective
Quick Intro to Ceph from Swift Perspective
- Paul Dardeau
- December 6, 2016
Major Components of Ceph
- RADOS - core part of Ceph
- librados - library for talking with RADOS
- RBD - RADOS block device
- CephFS - POSIX distributed FS interface
- RADOSGW - HTTP gateway with S3/Swift compliant API
@pauldardeau
pauldardeau / gist:8428f3f74229f041acd196a6ee2c6d10
Created December 1, 2016 23:15
Swift - thoughts on jumbo frames
IRC discussion on 12/1/2016
15:21:17 pdardeau | this is probably a dumb question, is use of jumbo frames the norm │ _JZ_
| for swift deployments? │ a1|away
15:24:17 +notmyname | pdardeau: I've heard that question before. let me ask around │ abalfour
15:26:08 pdardeau | notmyname: thanks! │ AbyssOne
15:26:11 +notmyname | pdardeau: ok, I got an answer from some our support people :-) │ acorwin_
15:27:49 +notmyname | short answer: good technical idea, generally bad operationally │ admin6
15:28:43 +notmyname | so it's probably not worth it │ agarner
15:29:15 pdardeau | notmyname: thanks! i've heard similar things in the past, but │ ahale
@pauldardeau
pauldardeau / gist:744de15198f229d5170bd3acaefe52a9
Last active November 23, 2016 17:09
Swift query container listings with prefix
paul@KSController:~$ swift list e-artist-songs
Eddie-Money--Eddie-Money--Two-Tickets-To-Paradise.mp3
Eddie-Money--No-Control--No-Control.mp3
Eddie-Money--No-Control--Shakin.mp3
Elton-John--Goodbye-Yellow-Brick-Road--Bennie-and-the-Jets.mp3
Elton-John--Madman-Across-the-Water--Levon.mp3
Elvis-Costello--Best-Of-Elvis-Costello--A-Good-Year-For-The-Roses.mp3
Elvis-Costello--Best-Of-Elvis-Costello--Accidents-Will-Happen.mp3
Elvis-Costello--Best-Of-Elvis-Costello--Alison.mp3
Elvis-Costello--Best-Of-Elvis-Costello--Almost-Blue.mp3
Java 8 on Ubuntu 14.04
https://www.liquidweb.com/kb/how-to-install-oracle-java-8-on-ubuntu-14-04-lts/