Assessing and Identifying Issues with Question Performance

One of the most visible performance considerations in a Tanium deployment is Question Performance, or the time it takes to receive responses from 100% of online endpoints after asking a Tanium question. While uncommon, there are times when customers experience question performance that is slower than the speeds they are accustomed to.To better understand where delays exist in this process it is imperative to understand each of the steps involved behind the scenes. With a clearer picture of which step seems problematic, the reader will be able to better communicate the issue beyond the general observation that “question performance feels slow”, and support will be able to use this specific information to more quickly resolve the root problem.

Before you proceed: Do it like the experts

The very first thing you should do when evaluating question performance is to verify that you have unchecked "Hide error results from questions" in your account preferences. Log out and log back in again, and check that this setting has been cleared.

Even the most seasoned of Tanium users sometimes forget this detail and end up mistaking other problems, like Sensor execution problems, with question performance.

First step: The Question Parser After you have typed your question and hit <Enter>, the text is submitted over the network to the Tanium Server for interpretation; this process does not happen in the console and requires what is called "a parse job" on the server. This parse job receives your typed English text and returns a list of potential question options as interpreted according to the Sensor names available in the system.If the console takes a long time to come back with a list of question options, it is possible that parse jobs are running slowly. This has nothing to do with your endpoint clients, but rather with the performance of your Tanium Server.

Second step: Question injection and activation As soon as you choose a question from the parsed list, the next step is insertion and activation.Insertion refers to the operation that takes your chosen question and sends it back to the Tanium Server, which inserts it into the Tanium database Question History.Activation refers to the process when all Tanium Servers (possibly two in an active-active configuration) realize a new question definition has been posted. When this happens, they gather its definition and make it available to endpoints the next time they register.As soon as these two operations are completed your console will display an empty Result Grid. If this grid takes a long time to display in your console, this condition is associated with problems in database performance. Third step: Receiving results and result information Once the console Result Grid appears, it will display: the number of data items gathered, from how many endpoints, and the estimated completion percentage. The result grid should be empty for a brief period,and then the three counts mentioned should increase very quickly.The exception to this rule are questions which target a single endpoint (or a handful of endpoints) in an otherwise larger estate; e.g. 

Get Computer Name from all machines with Computer Name equals "OneSpecificMachineName"

 This style of question will only receive a result if and when OneSpecificMachine receives the question, which could take more than a few seconds. For this reason, we suggest you use Get Computer Name from all machines when evaluating the speed of results being received.A result grid that doesn't show any progress at all is uncommon, but indicates a problem in the Tanium Server's communication out to endpoints.

 Fourth step: From 1% to 100%, long result tails and other odditiesIn a perfect world your result completion should reach 100% in under sixty seconds, but when this is not the case we call this "a long results tail". There are a few forms this can take.In a typical deployment production, the percent completion only takes an instant to jump above 0%, and then should make quick and steady progress past 50%, 70% and then begin to slow down. This slower portion is "the results tail". The percentage where the tail begins and how long it lasts are important pieces of information. The Leader Percentage displayed in the System Status page is also important because the more Leaders your system has, the less it is taking advantage of Tanium's linear chaining technology.In active-active deployments it is possible that the long results tail starts before 50%, which is indicative of the Tanium Servers having problems communicating with each other. This should be resolved first before trying to troubleshoot any other aspects of question performance.Long results tails that begin under 70% typically indicate a problem with your infrastructure, while those that begin above this level can be typically improved through simple configuration. Obtain a fresh Tanium Performance Analyzer (TPAN) report for your system, and work with your account TAM to identify areas for improvement.

As a final caution, note that results that arrive quickly but contain values like [no results], [RCU] (results currently unavailable) or any other error tags do not constitute a problem in question result performance, but in some other area of the system.

Conclusion We hope that this insight into how the Question to results cycle operates in Tanium will give you added tools in your arsenal to better understand which part of the system is underperforming for you. Feel free to consult your TAM for more on the subject.