Skip to content
This repository has been archived by the owner on Mar 28, 2020. It is now read-only.

enforce on disk action log for self hosted cluster #1205

Closed
xiang90 opened this issue Jun 17, 2017 · 4 comments
Closed

enforce on disk action log for self hosted cluster #1205

xiang90 opened this issue Jun 17, 2017 · 4 comments
Assignees
Milestone

Comments

@xiang90
Copy link
Collaborator

xiang90 commented Jun 17, 2017

The self hosted etcd cluster is critical to the health of a kubernetes cluster, thus to the operator itself.

The highest priority thing for us is to ensure the reliability of such a cluster. We want to debug EVERY failure cases.

Sometimes, users have troubles with their self hosted clusters, and when it happens they cannot even access their k8s cluster. It is usually hard for them to get the previous logs, especially for their testing/dev clusters without external logging system hooked up. But we need etcd operator log to debug such cases.

To make our debugging life easier, we should write another set of log down to local disk for self hosted cluster for every action it takes.. This is very common tricks for early stage systems that care about debug-ability.

/cc @hongchaodeng

@xiang90
Copy link
Collaborator Author

xiang90 commented Jun 17, 2017

/cc @coresolve

@xiang90
Copy link
Collaborator Author

xiang90 commented Jun 19, 2017

how to log:

use a well known host path
append to a log file, never truncate

things to log:

  • add new pod (with pod manifest)
  • remove pod (with pod name)
  • spec change (with old and new spec in human readable format)
  • changes in running pod (pod failure)
  • any API error or failure

/cc @hongchaodeng

@coresolve
Copy link

💯 agree!

@hasbro17 hasbro17 self-assigned this Jun 21, 2017
@xiang90 xiang90 added this to the 0.4.1 milestone Jun 29, 2017
@hongchaodeng hongchaodeng modified the milestones: 0.4.2, 0.4.1 Jul 11, 2017
@hongchaodeng
Copy link
Member

done

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants