Production Analysis and Troubleshooting with RavenDB
Join the DZone community and get the full member experience.Join For Free
the annoying thing about software in production is that it is a black box. it just sits there, doing something, and you have very little input into what. oh, you can look at the cpu usage and memory consumption, you can try to figure out what is going on from the kind of things that the system will tell you this process is doing. but for the most part, this is a black box. and not even one that is designed to let you figure out what just happened.
with ravendb, we have made a very conscious effort to avoid being a black box. there are a lot of end points that you can query to figure out exactly what is going on. and you can use different endpoints to figure out different problems. but in the end, while that was very easy for us to use, those aren’t really meant for end users. they are meant for our support engineers, mostly.
we got tired of sending over “give me the output of the following endpoints” deal. we wanted a better story, something that would be easier and more convenient all around. so we sat down and thought about this, and came up with the idea of the debug info package.
this deceptively simple tool will capture all of the relevant information from ravendb into a single zip file that you can mail support. it will also give you a lot of details about the internals of ravendb at the moment this was produced:
- recent http requests
- recent logs
- the database configuration
- what is currently being indexed?
- what are the current queries?
- what tasks are being run?
- all the database metrics
- current status of the pre-fetch queue
- the database live stats
and if that wasn’t enough, we have the following feature as well:
we get the full stack of the currently running process!
you can see how this look in full in the here:
but the idea is that we have cracked open the black box, and it is now so much easier to figure out what is going on!
Published at DZone with permission of Oren Eini, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.