forked from jjneely/buckytools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
1,139 changed files
with
13,277 additions
and
678 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
*~ | ||
*.pickle | ||
*.line |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) | ||
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). | ||
|
||
## [Unreleased] | ||
|
||
## [0.4.0] - 2017-08-17 | ||
### Added | ||
|
||
* Support for FNV1a hashing compatible with [carbon-c-relay][1] hash method | ||
`fnv1a_ch`. Issue #17 | ||
|
||
### Changed | ||
|
||
* Server, Port, and Instance that uniquely identify a carbon-cache daemon | ||
in the hash ring (and tune how the hashring works) are now always specified | ||
by `SERVER[:PORT][=INSTANCE]`. This is backwards incompatible, but fixes | ||
issues where the port and instance values could be confused. Issue #17 | ||
|
||
## [0.3.2] 2017-06-21 | ||
|
||
### Fixed | ||
|
||
* Support both Tuples and Lists which are now handled differently in the | ||
updated ogorek vendored package | ||
|
||
## [0.3.1] 2017-06-21 | ||
|
||
### Added | ||
|
||
* Unit tests for bucky-pickle-relay | ||
|
||
### Changed | ||
|
||
* Inverted delete option in bucky rebalance. Delete is now off by default. | ||
* Conform to Go best practices for repo layout | ||
* Update vendored packages | ||
|
||
### Fixed | ||
|
||
* Fix tar/restore after Snappy changes | ||
|
||
## [0.3.0] 2017-04-27 | ||
|
||
### Added | ||
|
||
* Use Snappy framing format for Whisper data over the wire. This makes | ||
transfer of time series databases significantly faster. | ||
|
||
[1]: https://github.com/grobian/carbon-c-relay |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2014 42 Lines, Inc. | ||
Copyright (c) 2014 - 2017 42 Lines, Inc. | ||
Original author: Jack Neely <[email protected]> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
|
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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,14 @@ | ||
package buckytools | ||
|
||
import ( | ||
"encoding/json" | ||
) | ||
|
||
const ( | ||
// Buckytools suite version | ||
Version = "0.1.9" | ||
Version = "0.4.0" | ||
) | ||
|
||
// SupportedHashTypes is the string identifiers of the hashing algorithms | ||
// used for the consistent hash ring. This slice must be sorted. | ||
var SupportedHashTypes = []string{ | ||
"carbon", | ||
"fnv1a", | ||
"jump_fnv1a", | ||
} | ||
|
||
// MetricStatType A JSON marshalable FileInfo type | ||
type MetricStatType struct { | ||
Name string // Filename | ||
Size int64 // file size | ||
Mode uint32 // mode bits | ||
ModTime int64 // Unix time | ||
} | ||
|
||
// JSONRingType is a datastructure that identifies the name of the server | ||
// buckdy is running on and contains a slice of nodes which are | ||
// "server:instance" (where ":instance" is optional) formatted strings | ||
type JSONRingType struct { | ||
Name string | ||
Nodes []string | ||
Algo string | ||
Replicas int | ||
} | ||
|
||
func (j *JSONRingType) String() string { | ||
blob, err := json.Marshal(j) | ||
if err != nil { | ||
return err.Error() | ||
} | ||
return string(blob) | ||
} |
File renamed without changes.
File renamed without changes.
Oops, something went wrong.