Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
jobily
Questdb
提交
8eee34ed
Q
Questdb
项目概览
jobily
/
Questdb
11 个月 前同步成功
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Q
Questdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
8eee34ed
编写于
3月 11, 2022
作者:
A
Andrey Pechkurov
提交者:
GitHub
3月 11, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore(conf): add default values for ILP props (#1945)
上级
6111b70c
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
31 addition
and
14 deletion
+31
-14
core/src/main/java/io/questdb/cutlass/line/tcp/LineTcpConnectionContext.java
...io/questdb/cutlass/line/tcp/LineTcpConnectionContext.java
+0
-1
core/src/main/java/io/questdb/cutlass/line/tcp/LineTcpParser.java
.../main/java/io/questdb/cutlass/line/tcp/LineTcpParser.java
+9
-9
core/src/main/resources/io/questdb/site/conf/server.conf
core/src/main/resources/io/questdb/site/conf/server.conf
+11
-2
pkg/ami/marketplace/assets/server.conf
pkg/ami/marketplace/assets/server.conf
+11
-2
未找到文件。
core/src/main/java/io/questdb/cutlass/line/tcp/LineTcpConnectionContext.java
浏览文件 @
8eee34ed
...
@@ -85,7 +85,6 @@ class LineTcpConnectionContext implements IOContext, Mutable {
...
@@ -85,7 +85,6 @@ class LineTcpConnectionContext implements IOContext, Mutable {
this
.
fd
=
-
1
;
this
.
fd
=
-
1
;
Unsafe
.
free
(
recvBufStart
,
recvBufEnd
-
recvBufStart
,
MemoryTag
.
NATIVE_DEFAULT
);
Unsafe
.
free
(
recvBufStart
,
recvBufEnd
-
recvBufStart
,
MemoryTag
.
NATIVE_DEFAULT
);
recvBufStart
=
recvBufEnd
=
recvBufPos
=
0
;
recvBufStart
=
recvBufEnd
=
recvBufPos
=
0
;
parser
.
close
();
floatingDirectCharSink
.
close
();
floatingDirectCharSink
.
close
();
}
}
...
...
core/src/main/java/io/questdb/cutlass/line/tcp/LineTcpParser.java
浏览文件 @
8eee34ed
...
@@ -33,9 +33,8 @@ import io.questdb.std.ObjList;
...
@@ -33,9 +33,8 @@ import io.questdb.std.ObjList;
import
io.questdb.std.Unsafe
;
import
io.questdb.std.Unsafe
;
import
io.questdb.std.str.DirectByteCharSequence
;
import
io.questdb.std.str.DirectByteCharSequence
;
import
java.io.Closeable
;
public
class
LineTcpParser
{
public
class
LineTcpParser
implements
Closeable
{
public
static
final
long
NULL_TIMESTAMP
=
Numbers
.
LONG_NaN
;
public
static
final
long
NULL_TIMESTAMP
=
Numbers
.
LONG_NaN
;
public
static
final
byte
ENTITY_TYPE_NULL
=
0
;
public
static
final
byte
ENTITY_TYPE_NULL
=
0
;
public
static
final
byte
ENTITY_TYPE_TAG
=
1
;
public
static
final
byte
ENTITY_TYPE_TAG
=
1
;
...
@@ -60,6 +59,7 @@ public class LineTcpParser implements Closeable {
...
@@ -60,6 +59,7 @@ public class LineTcpParser implements Closeable {
public
static
final
byte
ENTITY_TYPE_CHAR
=
19
;
public
static
final
byte
ENTITY_TYPE_CHAR
=
19
;
static
final
byte
ENTITY_TYPE_NONE
=
(
byte
)
0xff
;
// visible for testing
static
final
byte
ENTITY_TYPE_NONE
=
(
byte
)
0xff
;
// visible for testing
private
static
final
Log
LOG
=
LogFactory
.
getLog
(
LineTcpParser
.
class
);
private
static
final
Log
LOG
=
LogFactory
.
getLog
(
LineTcpParser
.
class
);
private
final
DirectByteCharSequence
measurementName
=
new
DirectByteCharSequence
();
private
final
DirectByteCharSequence
measurementName
=
new
DirectByteCharSequence
();
private
final
DirectByteCharSequence
charSeq
=
new
DirectByteCharSequence
();
private
final
DirectByteCharSequence
charSeq
=
new
DirectByteCharSequence
();
private
final
ObjList
<
ProtoEntity
>
entityCache
=
new
ObjList
<>();
private
final
ObjList
<
ProtoEntity
>
entityCache
=
new
ObjList
<>();
...
@@ -78,19 +78,19 @@ public class LineTcpParser implements Closeable {
...
@@ -78,19 +78,19 @@ public class LineTcpParser implements Closeable {
private
EntityHandler
entityHandler
;
private
EntityHandler
entityHandler
;
private
long
timestamp
;
private
long
timestamp
;
private
final
EntityHandler
entityTimestampHandler
=
this
::
expectTimestamp
;
private
final
EntityHandler
entityTimestampHandler
=
this
::
expectTimestamp
;
private
int
nQuoteCharacters
;
private
final
EntityHandler
entityTableHandler
=
this
::
expectTableName
;
private
int
nQuoteCharacters
;
private
boolean
scape
;
private
final
EntityHandler
entityValueHandler
=
this
::
expectEntityValue
;
private
final
EntityHandler
entityTableHandler
=
this
::
expectTableName
;
private
boolean
nextValueCanBeOpenQuote
;
private
final
EntityHandler
entityNameHandler
=
this
::
expectEntityName
;
private
boolean
scape
;
private
final
EntityHandler
entityValueHandler
=
this
::
expectEntityValue
;
private
boolean
nextValueCanBeOpenQuote
;
private
final
EntityHandler
entityNameHandler
=
this
::
expectEntityName
;
private
boolean
hasNonAscii
;
private
boolean
hasNonAscii
;
public
LineTcpParser
(
boolean
stringAsTagSupported
,
boolean
symbolAsFieldSupported
)
{
public
LineTcpParser
(
boolean
stringAsTagSupported
,
boolean
symbolAsFieldSupported
)
{
this
.
stringAsTagSupported
=
stringAsTagSupported
;
this
.
stringAsTagSupported
=
stringAsTagSupported
;
this
.
symbolAsFieldSupported
=
symbolAsFieldSupported
;
this
.
symbolAsFieldSupported
=
symbolAsFieldSupported
;
}
}
@Override
public
void
close
()
{
}
public
long
getBufferAddress
()
{
public
long
getBufferAddress
()
{
return
bufAt
;
return
bufAt
;
}
}
...
...
core/src/main/resources/io/questdb/site/conf/server.conf
浏览文件 @
8eee34ed
...
@@ -350,6 +350,8 @@ query.timeout.sec=60
...
@@ -350,6 +350,8 @@ query.timeout.sec=60
# Maximum number of uncommitted rows in TCP ILP
# Maximum number of uncommitted rows in TCP ILP
#cairo.max.uncommitted.rows=500000
#cairo.max.uncommitted.rows=500000
# Expected maximum time lag for out-of-order rows in milliseconds
#cairo.commit.lag=300000
# Memory page size per column for O3 operations. Please be aware O3 will use 2x of this RAM per column
# Memory page size per column for O3 operations. Please be aware O3 will use 2x of this RAM per column
#cairo.o3.column.memory.size=16M
#cairo.o3.column.memory.size=16M
...
@@ -442,9 +444,16 @@ query.timeout.sec=60
...
@@ -442,9 +444,16 @@ query.timeout.sec=60
#line.tcp.io.worker.sleep.threshold=10000
#line.tcp.io.worker.sleep.threshold=10000
#line.tcp.io.halt.on.error=false
#line.tcp.io.halt.on.error=false
# Maximum amount of time in between maintenance jobs, these will commit uncommited data
# Commit lag fraction. Used to calculate commit interval for the table according to the following formula:
# commit_interval = commit_lag ∗ fraction
# The calculated commit interval defines how long uncommitted data will need to remain uncommitted.
#line.tcp.commit.interval.fraction=0.5
# Default commit interval in milliseconds. Used when no commit lag set for a table or the fraction is set to 0.
#line.tcp.commit.interval.default=2000
# Maximum amount of time in between maintenance jobs in milliseconds, these will commit uncommitted data
#line.tcp.maintenance.job.interval=30000
#line.tcp.maintenance.job.interval=30000
# Minimum amount of idle time before a table writer is released
# Minimum amount of idle time before a table writer is released
in milliseconds
#line.tcp.min.idle.ms.before.writer.release=30000
#line.tcp.min.idle.ms.before.writer.release=30000
################ PG Wire settings ##################
################ PG Wire settings ##################
...
...
pkg/ami/marketplace/assets/server.conf
浏览文件 @
8eee34ed
...
@@ -297,6 +297,8 @@ http.enabled=true
...
@@ -297,6 +297,8 @@ http.enabled=true
# Maximum number of uncommitted rows in TCP ILP
# Maximum number of uncommitted rows in TCP ILP
#cairo.max.uncommitted.rows=500000
#cairo.max.uncommitted.rows=500000
# Expected maximum time lag for out-of-order rows in milliseconds
#cairo.commit.lag=300000
# sets the maximum size of the page frames used in SQL queries
# sets the maximum size of the page frames used in SQL queries
#cairo.sql.page.frame.max.size=8M
#cairo.sql.page.frame.max.size=8M
...
@@ -379,9 +381,16 @@ line.tcp.auth.db.path=conf/auth.txt
...
@@ -379,9 +381,16 @@ line.tcp.auth.db.path=conf/auth.txt
#line.tcp.io.worker.sleep.threshold=10000
#line.tcp.io.worker.sleep.threshold=10000
#line.tcp.io.halt.on.error=false
#line.tcp.io.halt.on.error=false
# Maximum amount of time in between maintenance jobs, these will commit uncommited data
# Commit lag fraction. Used to calculate commit interval for the table according to the following formula:
# commit_interval = commit_lag ∗ fraction
# The calculated commit interval defines how long uncommitted data will need to remain uncommitted.
#line.tcp.commit.interval.fraction=0.5
# Default commit interval in milliseconds. Used when no commit lag set for a table or the fraction is set to 0.
#line.tcp.commit.interval.default=2000
# Maximum amount of time in between maintenance jobs in milliseconds, these will commit uncommitted data
#line.tcp.maintenance.job.interval=30000
#line.tcp.maintenance.job.interval=30000
# Minimum amount of idle time before a table writer is released
# Minimum amount of idle time before a table writer is released
in milliseconds
#line.tcp.min.idle.ms.before.writer.release=30000
#line.tcp.min.idle.ms.before.writer.release=30000
################ PG Wire settings ##################
################ PG Wire settings ##################
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录