Skip to content

Commit e4d7990

Browse files
Merge branch 'main' into 37-circuit-breaker
2 parents 2e4f7a7 + abd6bfb commit e4d7990

35 files changed

+1171
-816
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
uses: actions/checkout@v5
3636

3737
- name: Install Go
38-
uses: actions/setup-go@v5
38+
uses: actions/setup-go@v6
3939
with:
4040
go-version: '1.24'
4141
cache: true
@@ -87,7 +87,7 @@ jobs:
8787
uses: actions/checkout@v5
8888

8989
- name: Install Go
90-
uses: actions/setup-go@v5
90+
uses: actions/setup-go@v6
9191
with:
9292
go-version: '1.24'
9393
cache: true
@@ -130,7 +130,7 @@ jobs:
130130
uses: actions/checkout@v5
131131

132132
- name: Install Go
133-
uses: actions/setup-go@v5
133+
uses: actions/setup-go@v6
134134
with:
135135
go-version: '1.24'
136136
cache: true

.github/workflows/guidelines-compliance.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Setup Node.js
16-
uses: actions/setup-node@v4
16+
uses: actions/setup-node@v5
1717
with:
1818
node-version: '24'
1919

@@ -31,7 +31,7 @@ jobs:
3131
3232
- name: Comment on PR if validation fails
3333
if: failure()
34-
uses: actions/github-script@v7
34+
uses: actions/github-script@v8
3535
with:
3636
script: |
3737
const comment = `❌ **PR Title Validation Failed**
@@ -63,7 +63,7 @@ jobs:
6363
6464
- name: Comment on PR if validation fails
6565
if: failure()
66-
uses: actions/github-script@v7
66+
uses: actions/github-script@v8
6767
with:
6868
script: |
6969
const comment = `❌ **Branch Name Validation Failed**

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
fetch-depth: 0
1919

2020
- name: Install Go
21-
uses: actions/setup-go@v5
21+
uses: actions/setup-go@v6
2222
with:
2323
go-version: '1.24'
2424
cache: true

README.md

Lines changed: 28 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,28 @@
1-
# seq-db
2-
3-
## Overview
4-
[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://GitHub.com/ozontech/seq-db/graphs/commit-activity)
5-
[![CI](https://github.com/ozontech/seq-db/actions/workflows/ci.yml/badge.svg)](https://github.com/ozontech/seq-db/actions/workflows/go.yml)
6-
[![Telegram](https://telegram-badge.vercel.app/api/telegram-badge?channelId=@file_d_community)](https://t.me/file_d_community)
7-
[![Code coverage](https://codecov.io/github/ozontech/seq-db/coverage.svg?branch=main)](https://codecov.io/github/ozontech/seq-db?branch=main)
8-
[![GitHub go.mod Go version of a Go module](https://img.shields.io/github/go-mod/go-version/ozontech/seq-db)](https://github.com/ozontech/seq-db)
9-
[![GoReportCard example](https://goreportcard.com/badge/github.com/ozontech/seq-db)](https://goreportcard.com/report/github.com/ozontech/seq-db)
1+
<h1 align="center">
2+
seq-db
3+
</h1>
4+
5+
<h3 align="center">
6+
<a href="https://ozontech.github.io/seq-db-docs/">Quickstart</a> &bull;
7+
<a href="https://ozontech.github.io/seq-db-docs/">Documentation</a> &bull;
8+
<a href="https://t.me/file_d_community/">Community</a> &bull;
9+
<a href="https://github.com/ozontech/seq-db/releases/">Releases</a>
10+
</h3>
11+
12+
<div align="center">
13+
14+
[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://GitHub.com/ozontech/seq-db/graphs/commit-activity)
15+
[![License](https://img.shields.io/github/license/ozontech/seq-db)](https://img.shields.io/github/license/ozontech/seq-db)
16+
[![Telegram](https://telegram-badge.vercel.app/api/telegram-badge?channelId=@file_d_community)](https://t.me/file_d_community)
17+
<br>
18+
[![CI](https://github.com/ozontech/seq-db/actions/workflows/ci.yml/badge.svg)](https://github.com/ozontech/seq-db/actions/workflows/go.yml)
19+
[![Code coverage](https://codecov.io/github/ozontech/seq-db/coverage.svg?branch=main)](https://codecov.io/github/ozontech/seq-db?branch=main)
20+
[![GitHub go.mod Go version of a Go module](https://img.shields.io/github/go-mod/go-version/ozontech/seq-db)](https://github.com/ozontech/seq-db)
21+
[![GoReportCard example](https://goreportcard.com/badge/github.com/ozontech/seq-db)](https://goreportcard.com/report/github.com/ozontech/seq-db)
22+
23+
</div>
24+
25+
<h2></h2>
1026

1127
**seq-db** is a scalable and high-performance database designed for storing and querying logs efficiently.
1228
It supports both single-instance and clustered deployments to meet various scalability and availability needs.
@@ -15,17 +31,6 @@ It supports both single-instance and clustered deployments to meet various scala
1531

1632
Get started quickly by following our [Quickstart Guide](https://ozontech.github.io/seq-db-docs/).
1733

18-
19-
[//]: # ()
20-
[//]: # (## Architecture)
21-
22-
[//]: # ()
23-
[//]: # (Learn more about the internal architecture and design decisions in)
24-
25-
[//]: # (our [Architecture Documentation]&#40;http://todo/architecture&#41;.)
26-
27-
[//]: # ()
28-
2934
## Cluster Configuration
3035

3136
For setting up a clustered deployment, refer to
@@ -40,8 +45,8 @@ our [GitHub Registry](https://github.com/ozontech/seq-db/pkgs/container/seq-db).
4045

4146
Join our community for discussions, support, and contributions:
4247

43-
- [GitHub Discussions](https://github.com/ozontech/seq-db/discussions)
44-
- [Telegram](https://t.me/file_d_community)
48+
- [GitHub Discussions](https://github.com/ozontech/seq-db/discussions);
49+
- [Telegram](https://t.me/file_d_community);
4550

4651
## Benchmarks
4752

@@ -50,7 +55,7 @@ our [Benchmark Reports](https://ozontech.github.io/seq-db-docs/seq-db/benchmarks
5055

5156
## Core Contributors
5257
seq-db started as an internal project. To recognise everyone who has made
53-
a significant contribution, we list all contributors -- internal and public -- in the order of their first commit to the project.
58+
a significant contribution, we list all contributors - internal and public - in the order of their first commit to the project.
5459

5560
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
5661
<!-- prettier-ignore-start -->

api/seqproxyapi/v1/seq_proxy_api.proto

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,9 @@ message StartAsyncSearchRequest {
256256
// Set this to true to enable document retrieval via FetchAsyncSearch.
257257
// Note: enabling this may significantly increase disk space usage.
258258
bool with_docs = 5;
259+
// Maximum number of documents to find. Doesn't affect aggs and hist.
260+
// Ignored if with_docs was set to false.
261+
int64 size = 6;
259262
}
260263

261264
message StartAsyncSearchResponse {

api/storeapi/store_api.proto

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ message StartAsyncSearchRequest {
148148
repeated AggQuery aggs = 6;
149149
int64 histogram_interval = 7;
150150
bool with_docs = 8;
151+
int64 size = 9;
151152
}
152153

153154
message StartAsyncSearchResponse {}
@@ -184,6 +185,7 @@ message FetchAsyncSearchResultResponse {
184185
google.protobuf.Timestamp to = 13;
185186
google.protobuf.Duration retention = 14;
186187
bool with_docs = 15;
188+
int64 size = 16;
187189
}
188190

189191
message CancelAsyncSearchRequest{
@@ -225,6 +227,7 @@ message AsyncSearchesListItem {
225227
google.protobuf.Timestamp to = 13;
226228
google.protobuf.Duration retention = 14;
227229
bool with_docs = 15;
230+
int64 size = 16;
228231
}
229232

230233
message IdWithHint {

cmd/seq-db/seq-db.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,12 @@ func startProxy(
178178

179179
pconfig := proxyapi.IngestorConfig{
180180
API: proxyapi.APIConfig{
181-
SearchTimeout: consts.DefaultSearchTimeout,
182-
ExportTimeout: consts.DefaultExportTimeout,
183-
QueryRateLimit: cfg.Limits.QueryRate,
184-
EsVersion: cfg.API.ESVersion,
185-
GatewayAddr: cfg.Address.GRPC,
181+
SearchTimeout: consts.DefaultSearchTimeout,
182+
ExportTimeout: consts.DefaultExportTimeout,
183+
QueryRateLimit: cfg.Limits.QueryRate,
184+
EsVersion: cfg.API.ESVersion,
185+
GatewayAddr: cfg.Address.GRPC,
186+
AsyncSearchMaxDocumentsPerRequest: cfg.AsyncSearch.MaxDocumentsPerRequest,
186187
},
187188
Search: search.Config{
188189
HotStores: hotStores,

config/config.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -238,10 +238,11 @@ type Config struct {
238238
AsyncSearch struct {
239239
// DataDir specifies directory that contains data for asynchronous searches.
240240
// By default will be subdirectory in [Config.Storage.DataDir].
241-
DataDir string `config:"data_dir"`
242-
Concurrency int `config:"concurrency"`
243-
MaxTotalSize Bytes `config:"max_total_size" default:"1GiB"`
244-
MaxSizePerRequest Bytes `config:"max_size_per_request" default:"100MiB"`
241+
DataDir string `config:"data_dir"`
242+
Concurrency int `config:"concurrency"`
243+
MaxTotalSize Bytes `config:"max_total_size" default:"1GiB"`
244+
MaxSizePerRequest Bytes `config:"max_size_per_request" default:"100MiB"`
245+
MaxDocumentsPerRequest int64 `config:"max_documents_per_request" default:"100000"`
245246
} `config:"async_search"`
246247

247248
API struct {

docs/en/01-quickstart.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ Before launch you need to create a config file:
2222
config.yaml:
2323

2424
```yaml
25-
storage:
26-
data_dir: /seq-db-data
27-
2825
mapping:
2926
path: auto
3027
```

docs/en/02-configuration.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ Configuration for asynchronous search operations.
152152
| `async_search.concurrency` | int | - | Concurrency level for async searches |
153153
| `async_search.max_total_size` | Bytes | `1GiB` | - |
154154
| `async_search.max_size_per_request` | Bytes | `100MiB` | - |
155+
| `async_search.max_documents_per_request` | int | `100000` | - |
155156

156157
## API Configuration
157158

0 commit comments

Comments
 (0)