Commit Graph

27 Commits

Author SHA1 Message Date
7a6d33620f snap: export durations of marshalling cost during snapshot save
Currently, total duration of snapshot saving is exported for
prometheus. For more detailed analysis, this commit let etcd export
durations of marshalling for prometheus.
2015-08-20 12:47:07 +09:00
57a5520157 snap: Record the snapshot save duration on success rather than only on error.
It makes more sense to record the latency of successes (or all attempts)
than of only a particular failure case.
2015-07-16 10:46:47 -07:00
13f44e4b79 *: update generated proto code 2015-06-29 16:45:25 -07:00
711451ce2d *: rename logger to plog 2015-06-02 14:58:24 -07:00
ae5f7c943b snap: use leveled logger 2015-06-01 14:07:30 -07:00
f697916793 snap: load should only return ErrNoSnapshot
If there is no available snapshot, load should return
ErrNoSnapshot. etcdserver might recover from that error
if it still have complete WAL files.
2015-04-15 09:41:07 -07:00
c3d3ad931b snap: add save latency metrics 2015-02-28 11:16:42 -08:00
71bed48916 snap: add Read function 2015-02-11 10:21:19 -08:00
f1ed69e883 *: switch to line comments for copyright
Build tags are not compatible with block comments.
Also adds copyright header to a few places it was missing.
2015-01-26 09:53:30 -08:00
e981dda287 snap: error on empty snapshot 2014-12-08 21:45:28 -08:00
3de2ab2c04 *: typofixes
https://github.com/vlajos/misspell_fixer
2014-12-04 22:51:19 +00:00
355ee4f393 raft: Integrate snapshots into the raft.Storage interface.
Compaction is now treated as an implementation detail of Storage
implementations; Node.Compact() and related functionality have been
removed. Ready.Snapshot is now used only for incoming snapshots.

A return value has been added to ApplyConfChange to allow applications
to track the node information that must be stored in the snapshot.

raftpb.Snapshot has been split into Snapshot and SnapshotMetadata, to
allow the full snapshot data to be read from disk only when needed.

raft.Storage has new methods Snapshot, ApplySnapshot, HardState, and
SetHardState. The Snapshot and HardState parameters have been removed
from RestartNode() and will now be loaded from Storage instead.
The only remaining difference between StartNode and RestartNode is that
the former bootstraps an initial list of Peers.
2014-11-19 16:40:26 -05:00
791b2fd503 *: handle panic and fatal more consistently
1. etcd fatals if there is critical error in the system and operator should
do something for it
2. etcd panics if there happens something unexpected, and it should be
reported to us to debug.
2014-11-05 13:53:24 -08:00
5da481213e Merge pull request #1478 from unihorn/190
etcdserver: panic on storage error
2014-11-03 11:07:55 -08:00
433b4138c5 etcdserver: panic on storage error
It is a critical error to etcd, and etcd is not able to recover it now.
2014-11-03 10:46:04 -08:00
aa50af1c69 *: clean log.Print
1. only log things by default that the operator of etcd may need to react to
2. put package name at the head of log lines
2014-10-30 18:15:53 -07:00
7a4d42166b *: add license header to all source files 2014-10-17 15:41:22 -07:00
ab61a8aa9a *: init for on disk snap support 2014-09-17 13:56:12 -07:00
9e77d180c4 snapshot: move pb to snappb; remove clusterId 2014-09-03 16:33:41 -07:00
f891199ab0 snap: refactoring 2014-09-03 09:20:09 -07:00
f664c02a40 snap: handle snapshot file error robustly 2014-09-03 09:20:09 -07:00
aff5b75487 snap: separate Load to Load and snapNames 2014-09-03 09:20:09 -07:00
71d12d3330 snap: fix typo 2014-09-03 09:20:09 -07:00
3b2a90e775 snap: separate different sections in the filename by adding dash 2014-09-03 09:20:09 -07:00
f7580cd3b6 snap: fix missing continue 2014-09-03 09:20:09 -07:00
12a9b84b2b snap: better naming 2014-09-03 09:20:09 -07:00
94521738a9 snap: init commit 2014-09-03 09:20:09 -07:00