Project: M3 (Observability and Analysis / Observability)
File: CHANGELOG.md

M3DB: Optimize snapshotting by 30x or more which can speedup bootstrapping for workloads with large snapshots. () M3DB: Fix multi-segment field iterator support of double underscore prefixed fields alphanumerically before `m3ninx_id`. () M3DB: Proactively GC Index entries belonging to a closed shard after cluster topology change. () M3Coordinator: Guard against duplicate rollup tags in aggregation matching logic. () M3DB: Improve index query performance by avoid cloning of roaring bitmap in conjunctionSearcher. () M3DB: Improve bootstrapping memory profile by fixing entry leak in series ref resolver. () M3DB: Provide better balanced shard placement by fixing unbalanced initial shard allocation. ( M3Coordinator: Do not Close singleton MessageProcessors when closing connections. This fixes a panic introduced that affects M3Coordinator -> M3Aggregator

() M3Query: Add write endpoint support for M3-Map-Tags-JSON header in InfluxDB path () M3Query: Add support for `lastovertime` in M3Query engine () M3Aggregator: Add p75/p25 as aggregation options () M3DB: Fix M3TSZ to be deterministic when encoding high precision values () M3DB: Gracefully handle reads including documents with stale index state () M3Aggregator: Rework close and remove `persitFlushTimesEvery` semantics in leader flushing in favour of always persisting shard flush times on a successful flush for optimized graceful failovers () M3DB: Optimize `filesetFiles` function during bootstrapping for namespaces with long retentions to prevent CPU spikes () M3DB: Avoid loading blocks in memory for namespaces with snapshots disabled during bootstrapping to reduce memory usage () M3Coordinator: Add support for Prometheus Remote Write storage backend for sending aggregated and unaggregated metrics (, , , , , ) M3Coordinator: Add support for InfluxDB write endpoint GZip compression, setting timestamp precision and allowing an empty request body () M3DB: Add SYSCTLVMMAXMAPCOUNT env var for sysctl-setter sidecar allowing for custom VM max map count () M3DB: Fix writes briefly degrading when creating a new namespace due to coarse lock acquisition () M3DB: Fix compiled regexp DFA cache eviction on full bug that can lead to slow memory leak with large number of unique regexps () M3Coordinator: Update default M3Msg retry initial backoff from 1s to 5s to reduces timeout and retries in large clusters () M3DB: Fix performance of reverse index queries that cover huge time ranges () M3Query: Support Prometheus matchers with match) M3Query: Support Prometheus start and end time URL parameters for label and series metadata endpoints () M3Query: Add Graphite functions and update functions with new arguments that were missing (, , , , , , , , , , , , , , , , ) M3Query: Fix Graphite treatment of `` to allow to match an empty segment instead of one or more (, ) M3Query: Add M3-Limit-Max-Range header to optionally truncate time range of queries () M3Coordinator: Add ability to use an exclude by rollup rule to rollup metrics without specific dimensions () M3DB: Use better heuristics to cap the series and aggregate query limits that individual DB nodes apply for a query so in larger clusters the query can be clamped earlier (, , , , ) M3DB: Add repair option full_sweep and ability to force a repair via API call (, ) M3DB: Fix aggregate series metadata query limits () M3Coordinator: Make bad aggregated namespace headers return bad request status code instead of internal server error () M3Coordinator: Propagate Require-Exhaustive parameter for aggregate series metadata queries () M3Query: Add determinism to Graphite sort and reduce functions () M3DB: Rearchitect index segments to compact and expire series on block rotation instead of build a new segment for new block () M3DB: Add postings list cache for searches and repopulate during active block index segment compaction before segment made visible for queries () M3DB: Avoid allocating index entry fields per series and read from backing mmap directly (, , ) M3DB: Avoid allocating series IDs when read from disk () M3DB: Improve speed of tag byte reuse from ID for tags by speeding up search () M3DB: Improve speed of bootstrap by using StreamingReadMetadata API for reads from disk () M3DB: Improve speed of bootstrap by using an asynchronously evaluated series resolver API that can be written to while bootstrapping reliably () M3DB: Add limits for total series being read at any one time globally () M3DB: Restrict the time a query can hold an index worker to help allow small queries to continue to execute while larger ones are paused and resumed () M3DB: Use adaptive WriteBatch allocations to dynamically match workload throughput and batch sizes () M3Coordinator: Improve rule matching speed by improving per element rule matching and disabling cache which puts locks in the hot path (, ) M3Query: Improve speed of M3TSZ decoding by using 64 bit operations () M3Query: Improve speed of M3TSZ decoding by using int64 type xtime.UnixNano instead of time.Time () M3Query: Improve speed of quorum reads by improving multi-replica iterator () M3Coordinator: Add /ready endpoint for readiness probe which checks current write/read consistency level achievability () M3Coordinator: Add per endpoint status code response codes and latency metrics () M3Coordinator: Add Graphite carbon ingest latency metrics () M3Coordinator: Add Graphite carbon ingest rule matcher contains to compliment regexp for faster matching () M3Coordinator: Return 504 errors on timeout to downstream M3DB nodes or other cross-region coordinators () M3Coordinator: Validate placements when using the raw placement upsert endpoint unless force set is specified () M3Query: Add Graphite powSeries function () M3Query: Add Graphite support for with metric path selectors () M3DB: Add ability to configure regexp DFA and FSA limits () M3DB: Add Alibaba Cloud storage class Kubernetes manifest for disk provisioning in Aliyun () M3Coordinator: Always set content type JSON for error responses () M3Query: Fix invalid query resulting in 500 instead of 400 () M3Query: Allow Graphite variadic functions to omit variadic args () M3DB: Skip out of retention index segments during bootstrap () All: Add clustering getting started guides for both Kubernetes operator and binaries deployment () This release makes breaking changes to the APIs and configuration to provide a simpler experience both for setup and operating M3. New . New . Simple and . M3DB limits for high resiliency under load. Bootstrap rearchitecture, now able to boostrap hundreds of millions of recently written datapoints in minutes for reads on restart. Continued focus on baseline performance release-over-release. M3DB: Namespace resolution and retention now configured dynamically via API and stored in etcd instead of being defined statically in M3Coordinator configuration. ``` message DatabaseCreateRequest { // ... // Optional aggregated namespace to create in // addition to unaggregated namespace AggregatedNamespace aggregated_namespace = 8; } ``` M3DB: Minimal configuration file with default settings looks like: ``` coordinator: {} db: {} ``` and includes common settings such as global query limits. M3DB: `db.bootstrap.bootstrappers` removed M3DB: `db.config` nested under `db.discovery.config` (`discovery` can optionally accept different `type`s of defaults instead of a custom `config`) M3Coordinator: `cluster.namespaces.storageMetricsType` removed M3Coordinator: `tagOptions.tagOptions` no longer supports `legacy` type M3Query: `limits.perQuery.maxComputedDatapoints` removed M3Query: `limits.perQuery.maxFetchedDatapoints` removed M3Query: `limits.global.maxFetchedDatapoints` removed M3Query: `cache` removed M3Query: `listenAddress` changed to always be resolved as a string from config. Format changed from ``` listenAddress: config: "..." value:

``` to ``` listenAddress: "..." ``` M3DB: `/services/m3db/database/config/bootstrappers` dynamic bootstappers endpoint removed M3Coordinator: Removed deprecated URL `/api/v1/namespace` in favor of stable preferred URL `/api/v1/services/m3db/namespace` M3Coordinator: Removed deprecated URL `/api/v1/namespace/init` in favor of stable preferred URL `/api/v1/services/m3db/namespace/init` M3Coordinator: Removed deprecated URL `/api/v1/namespace/unagg` in favor of stable preferred URL `/api/v1/services/m3db/namespace/unagg` M3Coordinator: Removed deprecated URL `/api/v1/placement` in favor of stable preferred URL `/api/v1/services/m3db/placement` M3Coordinator: Removed deprecated URL `/api/v1/placement/init` in favor of stable preferred URL `/api/v1/services/m3db/placement/init` `github.com/m3db/m3/src/x/close` removed in favor of `github.com/m3db/m3/src/x/resource` `github.com/m3db/m3/src/dbnode/clock` removed in favor of `github.com/m3db/m3/src/x/clock` `github.com/m3db/m3/src/x/dice/dice.go` moved to `github.com/m3db/m3/src/dbnode/storage/dice.go` `github.com/m3db/m3/src/x/lockfile/lockfile.go` moved to `github.com/m3db/m3/src/dbnode/server/lockfile.go` M3Query: Concept of data point limit enforcers removed in favor of the other remaining query limits (e.g. max series). This also removed metrics `costreporterdatapoints`, `costreporterdatapointscounter`, and `costreporteroverdatapoints_limit`. Linter enabled M3Query: Add aggregate Graphite function () M3Query: Add applyByNode Graphite function () M3Query: Graphite ParseTime function support greatly expanded to be more in line with Graphite allowances () M3Aggregator: Add default m3msg write timeouts to mitigate deadlocking writes with a stale TCP connection () M3DB: Fix a bug in bootstrap index caching that would cause long bootstrap times () M3Query: Fix Graphite constantLine() function to return 3 steps () M3Query: Fix Graphite limit snapping bug in movingAverage and movingMedian functions () M3Query: Add divideSeriesLists Graphite function () M3Query: Add integralByInterval Graphite function () M3Query: Add highest, lowest Graphite functions () M3Query: Add resolution exceeds query range warning () M3Coordinator: Added OpenAPI specification for namespace update endpoint () M3Coordinator: Add config option for writes to leaving shards to count towards consistency and read level unstrict all () All: Upgrade TChannel to v1.14 () M3DB: Add configuration to limit bytes read for historical metrics in a given time window () M3DB: Add configuration to toggle block caching () M3Coordinator: Add extended configuration of label and tag validation () M3DB: Perform single pass when reading commit log entry and reuse result for second bootstrap phase () M3DB: Documentation for fileset migrations, the forward and backwards compatibility guarantees and configuring migrations () M3Query: Add movingSum, movingMax, movingMin Graphite functions () M3Query: Add aliasByTags Graphite function () M3Query: Add exponentialMovingAverage Graphite function () M3Query: Add timeSlice Graphite function () M3Query: Add delay Graphite function () M3Query: Add aggregateWithWildcards Graphite function () M3Query: Add groupByNodes Graphite function () M3Coordinator: Allow using the placement set API for creating new placements as well as upserting existing placements () M3DB: Add bootstrap time migration config which supports seamless backwards and forwards compatible fileset upgrades () M3DB: Fix case insensitive regexp modifiers (?i) implementation for metrics selector () M3DB: Expose stream batch client options to config () M3Query: Metrics visibility and ability to limit number of encoders per block () M3Query: Fix to Graphite movingMedian and movingAverage functions that could skip data in certain cases or cause an out of bounds error after recovery () M3Coordinator: Fix a Graphite carbon ingest tag lifecycle bug that could cause duplicate tags () M3Coordinator: Support for remapping rules and provide tags that are auto-appended to metrics when aggregations are applied () M3DB: Extend lifetime of compactable index segments for aggregate queries () M3DB: Add migration task for filesets from v1.0 to

() M3DB: Fix enqueue readers info file reading () All: Fix buildkite mkdocs script () M3DB: Background cold flush process to no longer block data snapshotting or commit log rotation () M3DB: Avoid sorting index entries when reading data filesets during bootstrap when not required () M3Coordinator: Respect M3Cluster headers in namespace GET () M3Aggregator: Add M3Aggregator documentation (, ) M3DB: Bootstrapper documentation fixes () All: Update mkdocs (, ) All: Add M3 meetup recordings (, ) All: Update Twitter link () All: Fix spelling in FAQ () M3DB: Add bootstrap migration config and options () M3DB: Pause rollout of background cold flush process by revert until further testing () M3DB: Background cold flush process to no longer block data snapshotting or commit log rotation () M3DB: Validate individual index entries on decode instead of entire file on open, to further improve bootstrap speed () M3DB: Strict JSON unmarshal (disallow unknown fields) for raw HTTP/JSON DB node APIs () M3Query: Fix to regex selectors with leading wildcard () All: Links to M3 meetup recordings () M3DB: Add per-namespace indexing runtime options to define concurrency weighted to indexing () M3DB: Faster bootstrapping with deferred index checksum and significantly lower memory bump at block rotation () M3DB: Faster series aggregate metadata queries by intersecting postings term results with resolved query postings list () M3Query: Fix for label matching behavior not the same as regular Prometheus for when label value is ".+" or ".*" () M3Query: Special case when request from Go process such as Prometheus Go client library for searching series metadata using Go min/max UTC values () M3Query: Auto-detect querying for entire retention time range () M3Query: Fix for Graphite query for metric with single identifier and no dot separated elements () M3Coordinator: Add rollup rules example documentation (, ) M3DB: Expose cluster total shards and replicas as metrics () All: Minor documentation fixes () M3Query: Add M3-Restrict-By-Tags-JSON example () M3DB: Add continuous performance profiler that conditionally triggers with RPC endpoint () M3DB: Performance increases for block rotation by streamlining indexing lock contention () M3DB: Zero-copy of ID and fields on series index metadata re-indexing () M3Coordinator: Add ability to restrict and block incoming series based on tag matchers () M3DB: Fix an error where background compaction caused transient errors in queries () M3Query: Update config settings and cleaned up documentation for per query limits () M3DB: Ability to set per-query block limit () M3DB: Ability to set global per-second query limit () M3DB: Fix duplicate ID insertions causing transient error when flushing index block () M3Coordinator: Mapping rules with drop policies now correctly apply to unaggregated metrics () M3Query: Fix incorrect starting boundaries on some temporal queries () M3Query: Fix bug in one to one matching in binary functions () M3DB: Fix to edge case index data consistency on flush () M3DB: Fix require exhaustive propagation of require exhaustive option through RPC () M3DB: Add ability to return an error when max time series limit is hit instead of partial result and warning () M3Coordinator: Add support for namespace retention updates by API () M3Coordinator: Fix Content-Type for OpenAPI handler () Build: Build release binaries with goreleaser using Go 1.13 to match Go 1.13 docker images () M3DB: Report a histogram of series blocks fetched per query () M3Ctl: Add M3 command line tool for calling APIs and using YAML files to apply commands () M3Coordinator: Add public API to write annotations

arbitrary bytes), next to datapoints for things like storing exemplars (, , ) M3Coordinator: Add support for mapping rules, allowing metrics to be stored at different resolutions based on their labels/tags () M3Coordinator: Add Graphite mapping rule support () () M3Coordinator: Add community contributed InfluxDB write endpoint (at /api/v1/influxdb/write) () M3Coordinator: Add headers to pass along with request to remote write forward targets () M3Coordinator: Add retry to remote write forward targets () M3Coordinator: Add in-place M3Msg topic consumer updates with a PUT request () M3Coordinator: Add ability to rewrite tags for Prometheus remote write requests using header () M3Coordinator: Add config for multi-process launcher and SO_REUSEPORT listen servers for non-container based multi-process scaling () M3Query: Add Prometheus engine to compliment Prometheus Remote Read, improves performance by skipping serialization/deserialization/network overhead between Prometheus and M3Query (, ) M3Query: Add header to support enforcing all queries in request to implicitly always include a given label/tag matcher () M3Query: Return headers indicating incomplete results for cross-regional fanout queries when remote fails or hits a limit () M3Query: Refactor query server to allow for custom handlers () M3Query: Add remote read debug parameters to look at raw data for a PromQL query and/or get results as JSON () M3Query: Add warnings for Prometheus queries to Prometheus query JSON response () M3Query: Add ability to set default query timeout by config () M3Aggregator: Add M3Msg aggregator client for high throughput point to point clustered buffered delivery of metrics to aggregator () M3Aggregator: Add rollup rule support for metrics aggregated with pre-existing timestamps, such as Prometheus metrics () M3Aggregator: Add aggregator passthrough functionality for aggregation in a local region forwarding to a remote region for storage () M3DB: Improve RSS memory management with madvise resulting in flat RSS usage with a steady workload as time passes block-over-block () M3DB: Improve bootstrapping performance by allowing bootstrapping to be performed in a single pass, now possible for a lot of bootstraps to take just minutes depending on retention () M3DB: Use zero-copy references to index data instead of copy-on-read index data for each query, substantially improving query throughput and performance () M3DB: Further improve peer bootstrapping performance by using a document builder rather than raw memory segments () M3DB: Concurrent indexing when building segments for newly inserted metrics () M3DB: Decode ReadBits decompression improvements () M3DB: Remove implicit cloning of time ranges to reduce allocs () M3Query: Substantially improve temporal function performance () M3Query: Improve datapoint decompression speed (, , ) M3Query: Read bits uses an optimized byte reader () M3Coordinator: Ensure coordinator not grow M3Msg buffer if message over max size () M3Aggregator: Take last value by wall clock timestamp not arrival time to avoid late arrivals overwriting actual later occuring values () M3DB: Validate indexable metrics for valid utf-8 prior to insert, also includes a utility for earlier M3DB versions to remove non-utf8 index data () M3DB: Remove incorrect error log message for missing schema with default non-protobuf namespaces () M3DB: Fixed memory leak causing index blocks to remain in memory after flushing () M3DB: Fix long standing possibility of double RLock acqusition () M3DB: Remove loop in fileset writer when previous fileset encountered an error writing out index files () M3DB: Instead of encountering an error skip entries for unowned shards in commit log bootstrapper () M3DB: Fix to avoid returning error when missing writable bucket with a cold flush () M3DB: Set defaults and expose configuration of TChannel timeouts, this avoids idle connection growth () M3DB: Account for Neg/Pos Offsets when building per field roaring bitmap posting lists () M3DB: Fix to build flush errors (, ) M3Coordinator: Respect env and zone headers for topic API endpoints () M3Coordinator: Add support for Graphite Grafana plugin /find POST requests () M3Coordinator: Use tag options specified in config with M3Msg ingester () M3Coordinator: Only honor default aggregation policies if not matched by mapping rule () M3Query: Fix namespace resolve debug log not being written with multiple namespaces () M3Query: Fix to temporal function regression leading to inconsistent results () M3Query: Fix edge cases with cross-zonal query fanout and add verify utility () M3Query: Fix issue with histogram grouping () M3Aggregator: Add M3 aggregator Grafana dashboard () M3Coordinator: Add documentation to write to multiple clusters from a single coordinator () M3DB: Add documentation about estimating number of unique time series () M3DB: Update namespace configuration documentation to use simpler duration specific keys () All: Upgrade to Go 1.13 and switch dependency management to Go modules () All: Add gauge metrics to measure the number of active routines for any worker pool () All: Allow for ${ENVVARNAME} expansion with YAML configuration files () All: Add a utility for comparing performance and correctness across different versions of M3DB, enabling diffing the perf of different versions () All: Upgrade etcd client library to 3.4.3 () All: Include key name in watch errors () Development: Add HA Prometheus lab setup for dev M3 docker compose deployment () Development: Temporarily disable kubeval validation to allow builds on go 1.12 () Development: Add comparator value ingester for replaying functions against given data sets () Development: Logging improvements (,) M3Aggregator: Add a datasource variable and reuse it in all the panels of the aggregator dashboard () M3DB: Add client bad request/internal error distinction for metrics and sampled logs () M3DB: Add latency metrics to remote reads () M3DB: Add metrics for async replication worker pool utilization () M3DB: Remove carbon debug flag and rely on log debug level for debugging Carbon/Graphite mapping rules () M3DB: Add metric for BootstrappedAndDurable () M3DB: Use madvdontneed=1 in DB nodes to get a more accurate view of memory usage () M3DB: Add trace spans for database bootstrap process helping to identify all remaining slow code paths () M3Coordinator: Add power user API to custom set placement goal state for cluster membership and shards () M3Coordinator: Delete M3 aggregator related etcd keys when aggregator placement deleted () M3Coordinator: Add metrics for remote aggregator client and downsampler () M3Coordinator: Add aggregator client maxBatchSize config for configuring buffer for data sent to aggregator () M3Query: Allow both GET and POST for query APIs () M3Query: Only build amd64 architecture for m3query releases () M3DB: Fix the persist cycle not cleaning up state for reuse when flush times cannot be calculated () M3Query: Add specialized matchers for empty EQ/NEQ matchers () M3Aggregator: Do not require aggregator ID to be joined with port and add instance initialization debug logs () All: Support env var expansion using () All: Deprecate listen address expansion in favor of env var expansion () M3Query: Add endpoint that parses query to an AST () M3Query: Fix label replace lazy block function execution () Build: Ensure CGO is disabled in release binaries () M3Query: Add a limit exceeded header if too many series are matched for a query when limit is specified () M3Query: Graphite datapoint timestamps are now truncated to resolution for deterministic steps independent of start/end query time () M3Coordinator: Endpoint for /debug/dump now returns placement/namespace of the current configured database () M3DB: Add support for batching writes across namespaces () M3DB: Add support for batching fetches across namespaces () M3DB: Optimize fetches to avoid decoding more data than required to satisfy consistency () M3DB: Fix merge checksumming logic () M3Aggregator: Add aggregator to release binaries () M3Query: Federated queries

for cross region/zone queries) configurable to return a warning and partial results than a hard error to route around unhealthy regions () M3Query: Add ability to turn on GRPC reflection for testing query endpoints using utilities like grpcurl () M3Query: Add ability to use multiple config files for config overrides () M3DB: Add ability to replicate writes best effort directly to multiple clusters by specifying multiple etcd clusters for M3DB client () M3Coordinator: Add ability to replicate Prometheus remote write requests by forwarding the compressed body to downstream remote write endpoints (, ) M3Coordinator: Fix ability to delete coordinator placements () M3Aggregator: Ensure flush manager worker pool is at least size 1 irregardless of num CPUs () M3: Add FAQ and seed with some frequently asked questions asking () M3Coordinator: Fix the cluster placement endpoint documentation in the manual cluster setup instructions () M3DB: Add support for limiting the amount of outstanding repaired data that can be held in memory at once () M3Coordinator: Add namespace and placement information to the dump returned by the debug endpoint () M3Coordinator: Add DELETE api for the /topic endpoint () M3Aggregator: Make YAML serialization roundtrip for config related types () M3Query: Improve performance of temporal functions () M3DB: Only trigger bootstrap during topology change if a node receives new shards. This should significantly reduce the amount of time certain topology changes (such as node removes) took when performed on larger clusters () Version 0.11.0 of M3 includes further work on supporting writing data at arbitrary times (within the retention period). While most of these changes are transparent to the user in terms of functionality and performance, we had to make a change to the naming format of the files that get persisted to disk (). This change was required to handle multiple fileset volumes per block, which is necessary after introducing "cold flushes" (). The redesign is backwards compatible but not forwards compatible. This means that you should be able upgrade your < 0.11.0 clusters to 0.11.0 with no issues, but you will not be able to downgrade without taking some additional steps. If you run into any issues with the upgrade or need to downgrade to a previous version for any reason, follow these steps: Stop the node that is having trouble with the upgrade or that you're trying to downgrade. Remove the filesets that include a volume index in them, e.g. this is a filename with the new volumed format: `fileset-1257890400000000000-0-data.db`, and this is the corresponding filename in the original format: `fileset-1257890400000000000-data.db`. Modify the `bootstrappers` config in the M3DB YAML file from `filesystem, commitlog, peers, uninitializedtopology` to `filesystem, peers, commitlog, uninitializedtopology`. This will force the node to bootstrap from its peers instead of the local snapshot and commitlog files it has on disk, which is important otherwise when the node restarts, it will think that it has already been bootstrapped. Turn the node back on. M3DB: Add cluster repair capability for non-indexed data (, , , ) M3DB: Enable arbitrary out of order writes for non-indexed data (, , ) M3DB: Expose debug dump on /debug/dump for zip file of profiles and data about the environment for debugging () M3Query: Allow lookback duration to be set in query parameters for configurable lookback windowing () M3DB: Improve base line write performance using pre-encoded tags instead of encoding just before commit log write (, ) M3DB: Avoid allocating expensive digest readers in seek.Open() () M3Query: Fix PromQL variadic functions with no params specified () M3Query: Fix PromQL absent function () M3Query: Fix PromQL binary comparisons that use the time function () M3Query: Fix multi-deployment queries

cross region) using temporal functions () M3DB: Index queries to local node now returns only IDs owned by the node at time of read () M3DB: Automatically create folder for KV cache, avoiding common error logs () M3Query: Batch remote server responses to avoid large individual RPC messages () M3DB: Use rlimit and setcap together to raise file descriptor limits to desired setting if possible (, , ) M3DB: Add shard and recommended block sizes () M3Coordinator: Improve namespace specific read/write header documentation () M3DB: First of a set of incremental bootstrap improvements, improve commit log reader speed () M3Query: Add verbose step size parsing errors to identify problematic queries () M3Coordinator: Add verbose errors to identify metrics arriving too late for aggregation and make lateness policies able to be set by config () M3Coordinator: Use table based approach for aggregation tile buffer past calculation with good defaults for Prometheus remote write latency () M3Query: Add multi-zone and multi-region configuration for coordinator () M3Query: Add debug param to `GET` `/api/v1/namespace` endpoint for better readability () M3Coordinator: Add "ingest_latency" histogram metric and return datapoint too old/new errors with offending timestamps () M3DB: Add forward index write capability which eases index pressure at block boundaries () M3Query: Drop empty series from appearing in output when `keepNaNs` option is set to disabled (, ) M3DB: Build and release M3DB with Go 1.12 () M3DB: Fix a bug where peer bootstrapping would sometimes get stuck for a short period of time due to other M3DB nodes (temporarily) returning more than one block of data for a given time period () M3DB: Fix a bug that would cause multiple orders of magnitude slow-down in peer bootstrapping / node replacements when one of the nodes in the cluster was hard down () M3Query: Fix a bug with parsing Graphite find queries by adding `MatchField` and `MatchNotField` match types, and explicitly making use of them in graphite queries () M3Query: Propagate limit settings when using Prometheus Remote Read () M3Coordinator: Return a 404 rather than a 500 if we attempt to delete a nonexistent placement () M3Coordinator: Return HTTP 400 if all sent samples encounter too old/new or other bad request error () M3DB: Revert Docker setcap change to allow image to run with no special flags () M3DB: Use ReadAt() pread syscall to reduce syscalls per time series data read and half the number of open FDs with default configuration () M3Query: Add missing support for PromQL unary expressions () M3DB: Call setrlimit to set open FDs hard limit for docker image and in Dockerfile use setcap to enable capability () M3DB: Updated Tally to

to issue correct error message when listen address conflict occurs with Prometheus reporter () M3Query: Adding complete tags query fanout support with integration test () M3Query: Add docker integration test for query fanout and fix query aggregating results () M3DB: Restore process stats disabled by the open FD counting performance fix () M3Query: Add default and config to limit the number of unique time series fetch from a single DB node to fulfill a query (default 10,000) () M3Query: Fix and throttle file descriptor stat emission excessive allocation, also disable Prometheus process collector which had the same issue () M3DB: Fix ReturnUnfulfilledForCorruptCommitLogFiles not propagating to bootstrapper options, causing peer bootstrapper to begin when it should not () M3Query: Fix PromReadInstantHandler not correctly responding with error message when query encounters error () M3DB: Use index aggregate query to speed up the () M3Query: Fixed an issue causing untyped step sizes to fail parsing, now defaults to using seconds as the time unit () M3Query: Accept both GET and POST for series match endpoint () M3Coordinator: Emit caller I.P address in error logs () M3Query: Add a list tags endpoint that displays every unique tag name stored in M3DB to match the Prometheus () M3DB: Add native support for running M3DB in "index-only" mode () M3DB: Reduce M3DB log spam for normal operations like cleanup () M3DB: Filter out commit log files that were not present on disk before the process started when determining if files are corrupt in the commitlog bootstrapper. This will prevent a race in which the commitlog bootstrapper would interpret the current commitlog file as corrupt () M3Query: Fixed binary arithmetic to properly ignore names when checking for matching series () M3Query: Add start and end time to tag values endpoint to fix an issue preventing Grafana tag completion () M3DB: Optimize some types aggregation queries in M3DB to not require materializing intermediary documents. This should substantially improve query performance for certain types of aggregation queries such as those used to perform auto-complete in Prometheus and Grafana () M3DB: Open new commitlog files asynchronously. This should prevent large spikes in the commitlog queue during snapshotting / commitlog rotation for write-heavy workloads () M3DB: Fix index query and aggregate query pooling using finalizers () M3Query: Fix PromQL `offset` modifier implementation () M3DB: Fix index flush recovery when previous index flush attempts have failed () M3DB: Bump TagLiteralLength limit to 64K () M3DB: Add Jaeger tracing to M3DB QueryIDs path () M3DB: Add postingsList caching for FieldQuery () M3DB: Add write & read latency histogram metrics to M3DB client and emit from M3Coordinator () M3DB: Persist block at retention edge when building index after peer streaming () M3Query: Fixed a bug that could cause a panic when converting queries () M3DB: Fixed a bug that would sometimes prevent successfully retrieved time series data from being loaded into the cache. M3DB: Fixed a bug where an error was not being properly logged. Version 0.8.0 of M3 switches M3DB to use file descriptors and the Read() system call for reading time series data files instead of mmaps. This should improve read latency and memory utilization for some workloads, particularly those in which the amount of data on disk vastly exceeds the amount of memory on the system. This changes also enables the ability to increase the fetch concurrency past the default value. As a result of this change, M3DB will allocate significantly less mmaps, but will create a corresponding amount of file descriptors. Operators may need to tune their kernel configuration to allow a higher number of open file descriptors. Please follow our for more details. M3DB: Add dedicated aggregation endpoint (, , ) M3DB: Use Seek() and Read() APIs for index/data files instead of mmap + share expensive seeker resources among seekers () M3Query: Tag completion endpoints (Prometheus (`match) M3DB: Add an AllQuery index query type () M3DB: Fix to annotation pooling () M3Coordinator: Only panics log a stacktrace rather than expected errors () M3DB: Use a single results object for merging postings lists across blocks, rather than creating a result per block and discarding them immediately thereafter. This should reduce memory utilization significantly for queries that look back over a large number of blocks () M3DB: Improvement to applying back pressure on writes with a full commitlog, which should improve M3DB's ability to apply back pressure under load and recover quickly after being overwhelmed with

() All Binaries: Fix LD flags in release so that version, branch, build date, etc are packaged into the binary properly. M3Query: Add per-query cost accounting to allow fine-grained controls on datapoint limits to Prometheus and Graphite style queries () () M3Query: Add optional pickled return type for Graphite render endpoint () M3Query: Drop NaNs from query results () M3DB: Fix bug in postings list caching which could cause incorrect results on queries () Version 0.7.0 of M3 includes a redesign of the snapshotting and commitlog components ( among others). This redesign was critical to improve M3DB's consistency guarantees, reduce the amount of disk space that is wasted by commitlogs, and enable future feature development to support writing data at arbitrary times. The redesign is backwards compatible but not forwards compatible. This means that you should be able upgrade your < 0.7.0 clusters to 0.7.0 with no issues, but you will not be able to downgrade without taking some additional steps. Note that the first bootstrap after the upgrade may take longer than usual, but subsequent bootstraps should be just as fast as they used to be, or even faster. If you run into any issues with the upgrade or need to downgrade to a previous version for any reason, follow these steps: Stop the node that is having trouble with the upgrade or that you're trying to downgrade. Modify the `bootstrappers` config in the M3DB YAML file from `filesystem, commitlog, peers, uninitializedtopology` to `filesystem, peers, commitlog, uninitializedtopology`. This will force the node to bootstrap from its peers instead of the local snapshot and commitlog files it has on disk, bypassing any issues related to file incompatibility between versions. Turn the node back on and wait for it to finish bootstrapping and snapshotting. Once everything looks stable, change the config back to `filesystem, commitlog, peers, uninitialized_topology` so that the next time the node is restarted it will default to using the snapshot and commitlog files. M3DB: Restructuring of commitlog and snapshotting feature as described above () M3DB: Obtain a lock on data directory on startup () M3Coordinator: Add support for zone / environment override headers in namespace APIs so multiple M3DB clusters can be administered from the same M3Coordinator instance / etcd cluster () M3Query: Add Jaeger tracing to M3Query, and mechanism to plugin custom opentracing implementations () M3nsch: Add basic Grafana dashboard showing success rates and latencies () M3nsch: Support generating new unique metrics () M3DB: Optimize OStream implementation which reduces CPU synchronization for each write. Should result in modest improvement in load average for metrics workloads and a massive improvement in load average for any workload using large annotations (, ) M3DB: Prevent duplicate writes from being written to the commitlog () M3DB: Construct RPC service once and share it with TChannel and HTTP servers to prevent pools from being initialized multiple times reducing memory footprint () M3Query: Add LRU cache for query

Should help dashboards with expensive regex query in particular () M3Coordinator: Better error responses from namespace APIs when namespace is unknown () M3Query: Fix panic in temporal functions () M3Coordinator: Fix to panic caused by generating ID for series with no tags () M3Coordinator: Fix to panic caused by reading placement when none available instead of return 404 () M3Coordinator: ID generation scheme must be explicitly defined in configs () () M3DB (Config): Simplify M3 config options () M3Coordinator: Improve database creation API () M3Query: Add quantileovertime and histogram_quantile Prometheus functions (, ) Documentation: Additional documentation for namespace setup and configuration, etcd, and M3Coordinator ID generations schemes (, , , ) M3DB (Index): Add posting list cache that should result in a massive improvement for M3DB query performance for most workloads () M3DB (Index): Fix race condition in index query () M3Coordinator: Fix panic responder which was previously not reporting query panics to users () M3Query: Fix bug in calculating temporal (over_time) functions () M3Coordinator: Add in the form of Carbon ingestion (with configurable aggregation and storage policies), as well as direct and Grafana based Graphite querying support (, , , , , , ) M3Coordinator: Add tag completion API () M3Coordinator: Add new opt-in ID generation function that will never collide () M3DB: Add for setting database bootstrapers dynamically() M3DB (Index) Replace usage of slow "memory segment" for index segment with immutable F.S.Ts that are constantly being generated in the foreground as series are being inserted. Significantly reduces query latency (10x+) for some types of workloads that make heavy use of regex () M3DB: (Index) Add support for concurrent index block queries (improves performance of queries that look back many blocks () M3DB: (Index) Improve pooling configuration of one of the index array pools to prevent (almost) unbounded growth over time for certain workloads () M3DB: (Index) Use only one roaring bitmap library (Pilosa), and upgrade to version of Pilosa with our upstreammed `UnionInPlace` improvements that reduces memory consumption of expensive queries by over a factor of 10x (), fixes: M3DB: (Index) Don't use object pool for allocating long-lived arrays of tag slices which reduces steady-state memory consumption because the default size is 16 which is much bigger than the number of tags most metrics have () M3DB: Auto-calculate size of WriteBatchPool based on commitlog queue size and improve chance of batch being returned to pool () M3DB: Don't allow msgpack library to allocate \*bufio.Reader (reduces allocations) and mmap bloomfilters and index summaries as files instead of anonymously so they can be paged out by the O.S if necessary () M3DB: Fix bug where namespace-level configuration "writes to commitlog" was not respected () M3DB: Improve how M3DB handles durability during topology changes. Previously, a new node that was added to an M3DB cluster would not be completely durable (able to recover all data from disk) for a few minutes after the node join completed even though it marked all its shards as available. Now, newly added M3DB nodes will never mark their shards as available until they are completely durable (). Also, Make M3DB health check not return success until node is bootstrapped AND durable, not just

This makes automated operations (like those performed by the Kubernetes operator or various scripts) much safer () M3DB: Make it possible to safely replace/add/remove M3DB seed nodes by exposing etcd configuration () M3Coordinator: Fix bug in database create API so it respects number of shards () M3Coordinator: Fix tag propagation for temporal functions () M3Coordinator: Properly propagate M3DB fetch timeout from config instead of using default value () Coordinator: Reduce log spam for high latency requests () Coordinator: Add support for replace API for db nodes () Coordinator: Add sort and sort_desc and linear regression promql functions (, ) DB: Emit logs when process limits are misconfigured () DB: Change the implementation of the snapshotting process to snapshot all unflushed blocks () DB: Remove CacheAllMetadata policy () FIX Coordinator: Fixed bug in database creation API: error not displayed in logs () FIX DB: Various changes that improve M3DBs resiliency to corrupt commitlog files during bootstrap and cleanup as well as its resiliency to corrupt fileset files (, , ) FIX Coordinator: Fix OpenAPI yml, was previously broken and would not render () PERF DB: Sample M3DB write method timers to improve performance for high write throughput workloads () PERF DB: Massive improvement in write throughput (2-3 in some cases) by improving the speed of the commitlog msgpack encoder and removing contention on the commitlog queue via batching (, ) Aggregator, Collector: Add m3aggregator and m3collector for clustered downsampling (440b41657, df3999d58, , , , ) Coordinator: Add m3msg server and placement and topic APIs in m3coordinator to enable use as backend with m3aggregator (, , ) DOCS DB: Add doc links to placement and namespace config operational guides () Coordinator: Add cluster namespace fanout heuristics supporting queries greater than retention () Coordinator: Add ability for query storage to provide unconsolidated blocks () FIX Coordinator: Multi-fetch fixes () FIX Coordinator: Disable CGO on linux builds () FIX Coordinator: Write fanouts with aggregated namespaces () PERF Coordinator: Set namespace and ID as NoFinalize () PERF Coordinator: Treat Prometheus TagName/Value as ) PERF Coordinator: Improve performance of generatings IDs from tags in M3Coordinator () PERF Coordinator: Significantly improve performance of FetchResultToPromResult and helper functions () PERF Coordinator: Improve M3DB session performance part 2: Dont clone IDs if they are IsNoFinalize() () PERF Coordinator: Improve M3DB session performance part 1: Pool goroutines in host queues () PERF Coordinator: Use pooling for writes to coordinator () PERF Coordinator: Use a better pool size for coordinator writes () PERF Coordinator: Avoid duplicate ident.ID conversions () DOCS DB: Add placement change operational guide () DOCS DB: Add namespace modification operational guide () DOCS DB: ) DOCS DB: Add operational guides for M3DB (topology and bootstrapping) () DOCS DB: ) DOCS DB: Update bootstrapping operational guide () DOCS DB: Timeout topology watch and return better error messages for missing topology / namespaces () DOCS DB: Add Prom/Grafana dashboard for M3DB as well as docker-compose for local development of m3-stack () FIX DB Index data race in FST Segment reads () DB: Use commit log bootstrapper before peers bootstrapper () Query: Add more PromQL functions (irate, temporal functions, etc) (, ) Coordinator: Add downsampling to all configured namespaces by default () DB: By default use upsert behavior for datapoints written to mutable series () PERF DB: Various performance updates (, ) Query: Make compatible with Grafana Prometheus data source (, ) FIX DB: Fix index correctness for multi-segment reads () PERF DB: Index performance improvements () FIX DB: Remove native pooling and remove possibility of it being used by any components () FIX DB: Fix LRU series cache locking during