drush oss - Solr Indexing Progress and Statistics

opensolr:stats, progress per index and session

drush oss

drush oss (full name opensolr:stats) shows how far indexing has come, per index, and whether a background run is going. It changes nothing, so run it as often as you like.

drush oss [--server=ID] [--index=ID]

What it shows

  • Without options: one block per running session. When nothing runs, every enabled Solr server with all its enabled indexes.
  • With --server or --index: only that server or that index.
=== INDEXING STATISTICS ===

  Server: my_solr_server
    content_index          [##########..........]  52.3%
      156,432 / 299,123 (remaining: 142,691)

  Background indexer running (PID: 12345)
  Log: /tmp/opensolr_turbo_my_solr_server.log

  Active workers: 10

Reading it

  • Progress bar and percent: items indexed out of all items the tracker knows for that index.
  • indexed / total (remaining): the same, in numbers. Remaining is what still waits.
  • Background indexer running: a run is going for this session; the line names its process ID and its log file. A run started with --no-background prints to its terminal instead of the log.
  • Active workers: workers of the current round still running.

Examples

# Everything that runs now
drush oss

# One server, running or not
drush oss --server=my_solr_server

# One index
drush oss --index=content_index

Done means 100.0% and remaining 0 for every index. For a live view, read the log instead: Background mode.

Commands