Entradas

Mostrando las entradas con la etiqueta MongoDB

Mongotail 2.0 with new performance features, SSL and MongoDB 3.2 support

Imagen
A couple of weeks ago I released Mongotail 2.0.0 , with new features and support for the latest version of MongoDB 3.2 . Also one of the most important features is the ability to login against a database with SSL authentication , and new options that give us more information about what is happening in our database, like the consumed time by a query, or how many registries the engine had to "walk" to find a particular record. What is Mongotail? mongotail is a command line tool to output any operation from a Mongo database in the standard output. You can see the operations collected by the database profiler from your console. In the following steps we will see how to use these new features, and at the end of the post are the instructions to update or install the tool. Activating the profiler of a database You need to activate the profiler of a database to see what is happening. In the following steps we will assume that we are connecting against a database ca...

Logs Queries de MongoDB con Mongotail

Imagen
Mongotail es una herramienta de línea de comandos que permite ver los logs de las últimas queries (o todas) ejecutadas en una base de datos Mongo , de una manera similar a la que el comando " tail " nos permite ver las últimas líneas de un archivo. Esto es realmente útil cuando estamos teniendo problemas de performance y necesitamos saber dónde se están consumiendo los recursos, o porqué una aplicación que suponemos hace una consulta no nos devuelve el resultado que esperamos, entre otros casos de uso. Desarrollé la herramienta con Python hace poco más de un mes, y hace unos días publiqué en los repositorios PyPI una última versión con mejoras, por lo que no es necesario saber nada de Python ni de como instalar un script en el PATH del sistema, ya que podemos instalarlo como un comando más del sistema con una herramienta llamad...