Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
yanghaoyuan.sh
SkyWalking
提交
a7210f66
S
SkyWalking
项目概览
yanghaoyuan.sh
/
SkyWalking
与 Fork 源项目一致
Fork自
apache / SkyWalking
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
SkyWalking
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
a7210f66
编写于
11月 29, 2022
作者:
K
kezhenxu94
提交者:
GitHub
11月 29, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add OpenSearch 1.3.6 and 2.4.0 to test matrix (#10040)
上级
067b1197
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
64 addition
and
31 deletion
+64
-31
.github/workflows/skywalking.yaml
.github/workflows/skywalking.yaml
+30
-19
docs/en/setup/backend/backend-storage.md
docs/en/setup/backend/backend-storage.md
+13
-8
oap-server/server-library/library-elasticsearch-client/src/main/java/org/apache/skywalking/library/elasticsearch/ElasticSearchVersion.java
...kywalking/library/elasticsearch/ElasticSearchVersion.java
+1
-1
oap-server/server-library/library-elasticsearch-client/src/test/java/org/apache/skywalking/library/elasticsearch/TCITElasticSearch.java
...e/skywalking/library/elasticsearch/TCITElasticSearch.java
+11
-1
oap-server/server-storage-plugin/storage-shardingsphere-plugin/src/test/java/org/apache/skywalking/oap/server/storage/plugin/jdbc/shardingsphere/TCITShardingSphere.java
...torage/plugin/jdbc/shardingsphere/TCITShardingSphere.java
+2
-2
pom.xml
pom.xml
+7
-0
未找到文件。
.github/workflows/skywalking.yaml
浏览文件 @
a7210f66
...
...
@@ -29,7 +29,7 @@ env:
SW_AGENT_JDK_VERSION
:
8
MAVEN_OPTS
:
-Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120
SEGMENT_DOWNLOAD_TIMEOUT_MINS
:
5
# Cache restore timeout
jobs
:
license-header
:
if
:
(github.event_name == 'schedule' && github.repository == 'apache/skywalking') || (github.event_name != 'schedule')
...
...
@@ -271,17 +271,22 @@ jobs:
./mvnw clean verify -q -B -Dcheckstyle.skip -DskipUTs -DskipITs=false || \
./mvnw clean verify -q -B -Dcheckstyle.skip -DskipUTs -DskipITs=false
it-sharding-proxy
:
# Time consuming integration tests
tc-integration-test
:
if
:
|
always() &&
((github.event_name == 'schedule' && github.repository == 'apache/skywalking') || needs.changes.outputs.oap == 'true')
name
:
IT Sharding-proxy
name
:
Time Consuming Integration Tests
needs
:
[
sanity-check
,
changes
]
runs-on
:
ubuntu-latest
timeout-minutes
:
60
strategy
:
matrix
:
java-version
:
[
8
,
11
]
test
:
-
name
:
ShardingSphere
class
:
org.apache.skywalking.oap.server.storage.plugin.jdbc.shardingsphere.TCITShardingSphere
-
name
:
ElasticSearch / OpenSearch
class
:
org.apache.skywalking.library.elasticsearch.TCITElasticSearch
steps
:
-
uses
:
actions/checkout@v3
with
:
...
...
@@ -294,12 +299,12 @@ jobs:
restore-keys
:
${{ runner.os }}-maven-
-
uses
:
actions/setup-java@v3
with
:
java-version
:
${{ matrix.java-version }}
java-version
:
8
distribution
:
adopt
-
name
:
IT Sharding-proxy
-
name
:
${{ matrix.test.name }}
run
:
|
./mvnw clean
test -Dtest=org.apache.skywalking.oap.server.storage.plugin.jdbc.shardingsphere.ShardingIntegrationTest
-DfailIfNoTests=false || \
./mvnw clean
test -Dtest=org.apache.skywalking.oap.server.storage.plugin.jdbc.shardingsphere.ShardingIntegrationTest
-DfailIfNoTests=false
./mvnw clean
test -Dtest=${{ matrix.test.class }}
-DfailIfNoTests=false || \
./mvnw clean
test -Dtest=${{ matrix.test.class }}
-DfailIfNoTests=false
e2e-test
:
if
:
|
...
...
@@ -370,12 +375,12 @@ jobs:
-
name
:
Storage OpenSearch 1.1.0
config
:
test/e2e-v2/cases/storage/opensearch/e2e.yaml
env
:
OPENSEARCH_VERSION=1.1.0
-
name
:
Storage OpenSearch 1.
2.0
-
name
:
Storage OpenSearch 1.
3.6
config
:
test/e2e-v2/cases/storage/opensearch/e2e.yaml
env
:
OPENSEARCH_VERSION=1.
2.0
-
name
:
Storage OpenSearch 2.
3
.0
env
:
OPENSEARCH_VERSION=1.
3.6
-
name
:
Storage OpenSearch 2.
4
.0
config
:
test/e2e-v2/cases/storage/opensearch/e2e.yaml
env
:
OPENSEARCH_VERSION=2.
3
.0
env
:
OPENSEARCH_VERSION=2.
4
.0
-
name
:
Storage ES Sharding
config
:
test/e2e-v2/cases/storage/es/es-sharding/e2e.yaml
...
...
@@ -480,9 +485,12 @@ jobs:
-
name
:
Trace Profiling OpenSearch 1.1.0
config
:
test/e2e-v2/cases/profiling/trace/opensearch/e2e.yaml
env
:
OPENSEARCH_VERSION=1.1.0
-
name
:
Trace Profiling OpenSearch 1.2.0
-
name
:
Trace Profiling OpenSearch 1.3.6
config
:
test/e2e-v2/cases/profiling/trace/opensearch/e2e.yaml
env
:
OPENSEARCH_VERSION=1.3.6
-
name
:
Trace Profiling OpenSearch 2.4.0
config
:
test/e2e-v2/cases/profiling/trace/opensearch/e2e.yaml
env
:
OPENSEARCH_VERSION=
1.2
.0
env
:
OPENSEARCH_VERSION=
2.4
.0
-
name
:
eBPF Profiling On CPU BanyanDB
config
:
test/e2e-v2/cases/profiling/ebpf/oncpu/banyandb/e2e.yaml
...
...
@@ -501,9 +509,12 @@ jobs:
-
name
:
eBPF Profiling On CPU OpenSearch 1.1.0
config
:
test/e2e-v2/cases/profiling/ebpf/oncpu/opensearch/e2e.yaml
env
:
OPENSEARCH_VERSION=1.1.0
-
name
:
eBPF Profiling On CPU OpenSearch 1.2.0
-
name
:
eBPF Profiling On CPU OpenSearch 1.3.6
config
:
test/e2e-v2/cases/profiling/ebpf/oncpu/opensearch/e2e.yaml
env
:
OPENSEARCH_VERSION=1.3.6
-
name
:
eBPF Profiling On CPU OpenSearch 2.4.0
config
:
test/e2e-v2/cases/profiling/ebpf/oncpu/opensearch/e2e.yaml
env
:
OPENSEARCH_VERSION=
1.2
.0
env
:
OPENSEARCH_VERSION=
2.4
.0
-
name
:
eBPF Profiling Off CPU
config
:
test/e2e-v2/cases/profiling/ebpf/offcpu/e2e.yaml
-
name
:
eBPF Profiling Network
...
...
@@ -747,7 +758,7 @@ jobs:
-
dependency-license
-
unit-test
-
integration-test
-
it-sharding-proxy
-
tc-integration-test
-
e2e-test
-
e2e-test-istio
-
e2e-test-java-versions
...
...
@@ -766,7 +777,7 @@ jobs:
depLicenseResults=${{ needs.dependency-license.result }}
unitResults=${{ needs.unit-test.result }};
integrationResults=${{ needs.integration-test.result }};
itShardingResults=${{ needs.it-sharding-proxy
.result }};
timeConsumingITResults=${{ needs.tc-integration-test
.result }};
e2eResults=${{ needs.e2e-test.result }};
e2eIstioResults=${{ needs.e2e-test-istio.result }};
e2eJavaVersionResults=${{ needs.e2e-test-java-versions.result }};
...
...
@@ -777,6 +788,6 @@ jobs:
[[ ${e2eResults} == 'success' ]] || [[ ${execute} != 'true' && ${e2eResults} == 'skipped' ]] || exit -5;
[[ ${e2eIstioResults} == 'success' ]] || [[ ${execute} != 'true' && ${e2eIstioResults} == 'skipped' ]] || exit -6;
[[ ${e2eJavaVersionResults} == 'success' ]] || [[ ${execute} != 'true' && ${e2eJavaVersionResults} == 'skipped' ]] || exit -7;
[[ ${
itShardingResults} == 'success' ]] || [[ ${execute} != 'true' && ${itSharding
Results} == 'skipped' ]] || exit -8;
[[ ${
timeConsumingITResults} == 'success' ]] || [[ ${execute} != 'true' && ${timeConsumingIT
Results} == 'skipped' ]] || exit -8;
exit 0;
docs/en/setup/backend/backend-storage.md
浏览文件 @
a7210f66
...
...
@@ -41,6 +41,11 @@ OpenSearch is a fork from ElasticSearch 7.11 but licensed in Apache 2.0.
OpenSearch storage shares the same configurations as ElasticSearch.
In order to activate OpenSearch as storage, set the storage provider to
**elasticsearch**
.
We support and tested the following versions of OpenSearch:
-
1.1.0, 1.3.6
-
2.4.0
## ElasticSearch
**NOTE:**
Elastic announced through their blog that Elasticsearch will be moving over to a Server Side Public
...
...
@@ -161,19 +166,19 @@ The following settings control the number of shards and replicas for new and exi
storage
:
elasticsearch
:
# ......
indexShardsNumber
:
${SW_STORAGE_ES_INDEX_SHARDS_NUMBER:1}
indexReplicasNumber
:
${SW_STORAGE_ES_INDEX_REPLICAS_NUMBER:1}
indexShardsNumber
:
${SW_STORAGE_ES_INDEX_SHARDS_NUMBER:1}
indexReplicasNumber
:
${SW_STORAGE_ES_INDEX_REPLICAS_NUMBER:1}
specificIndexSettings
:
${SW_STORAGE_ES_SPECIFIC_INDEX_SETTINGS:""}
superDatasetIndexShardsFactor
:
${SW_STORAGE_ES_SUPER_DATASET_INDEX_SHARDS_FACTOR:5}
superDatasetIndexShardsFactor
:
${SW_STORAGE_ES_SUPER_DATASET_INDEX_SHARDS_FACTOR:5}
superDatasetIndexReplicasNumber
:
${SW_STORAGE_ES_SUPER_DATASET_INDEX_REPLICAS_NUMBER:0}
```
The following table shows the relationship between those config items and Elasticsearch
`index number_of_shards/number_of_replicas`
.
And also you can
[
specify the settings for each index individually.
](
#specify-settings-for-each-elasticsearch-index-individually
)
And also you can
[
specify the settings for each index individually.
](
#specify-settings-for-each-elasticsearch-index-individually
)
| index | number_of_shards | number_of_replicas |
| index | number_of_shards | number_of_replicas |
|--------------------------------------|------------------|----------------------|
| sw_ui_template | indexShardsNumber | indexReplicasNumber |
| sw_metrics-all-
`${day-format}`
| indexShardsNumber | indexReplicasNumber |
| sw_ui_template | indexShardsNumber | indexReplicasNumber |
| sw_metrics-all-
`${day-format}`
| indexShardsNumber | indexReplicasNumber |
| sw_log-
`${day-format}`
| indexShardsNumber
*
superDatasetIndexShardsFactor | superDatasetIndexReplicasNumber |
| sw_segment-
`${day-format}`
| indexShardsNumber
*
superDatasetIndexShardsFactor | superDatasetIndexReplicasNumber |
| sw_browser_error_log-
`${day-format}`
| indexShardsNumber
*
superDatasetIndexShardsFactor | superDatasetIndexReplicasNumber |
...
...
@@ -200,7 +205,7 @@ Supported settings:
-
number_of_shards
-
number_of_replicas
**NOTE:**
These settings have the highest priority and will override the existing
**NOTE:**
These settings have the highest priority and will override the existing
generic settings mentioned in
[
index settings doc
](
#index-settings
)
.
The settings are in
`JSON`
format. The index name here is logic entity name, which should exclude the
`${SW_NAMESPACE}`
which is
`sw`
by default, e.g.
...
...
oap-server/server-library/library-elasticsearch-client/src/main/java/org/apache/skywalking/library/elasticsearch/ElasticSearchVersion.java
浏览文件 @
a7210f66
...
...
@@ -43,7 +43,7 @@ public final class ElasticSearchVersion {
this
.
minor
=
minor
;
if
(
distribution
.
equalsIgnoreCase
(
"OpenSearch"
))
{
requestFactory
=
new
V
78
RequestFactory
(
this
);
requestFactory
=
new
V
81
RequestFactory
(
this
);
codec
=
V78Codec
.
INSTANCE
;
return
;
}
...
...
oap-server/server-library/library-elasticsearch-client/src/test/java/org/apache/skywalking/library/elasticsearch/
ITElasticSearchTest
.java
→
oap-server/server-library/library-elasticsearch-client/src/test/java/org/apache/skywalking/library/elasticsearch/
TCITElasticSearch
.java
浏览文件 @
a7210f66
...
...
@@ -55,7 +55,7 @@ import static org.junit.Assert.assertTrue;
@RequiredArgsConstructor
@RunWith
(
Parameterized
.
class
)
public
class
ITElasticSearchTest
{
public
class
TCITElasticSearch
{
@Parameterized
.
Parameters
(
name
=
"version: {0}"
)
public
static
Collection
<
Object
[]>
es
()
{
...
...
@@ -104,6 +104,16 @@ public class ITElasticSearchTest {
"docker.elastic.co/elasticsearch/elasticsearch-oss"
))
.
withEnv
(
"plugins.security.disabled"
,
"true"
)
.
withStartupTimeout
(
java
.
time
.
Duration
.
ofMinutes
(
5
))
},
{
"OpenSearch 2.4.0"
,
new
ElasticsearchContainer
(
DockerImageName
.
parse
(
"opensearchproject/opensearch"
)
.
withTag
(
"2.4.0"
)
.
asCompatibleSubstituteFor
(
"docker.elastic.co/elasticsearch/elasticsearch-oss"
))
.
withEnv
(
"plugins.security.disabled"
,
"true"
)
.
withStartupTimeout
(
java
.
time
.
Duration
.
ofMinutes
(
5
))
}
});
}
...
...
oap-server/server-storage-plugin/storage-shardingsphere-plugin/src/test/java/org/apache/skywalking/oap/server/storage/plugin/jdbc/shardingsphere/
ShardingIntegrationTest
.java
→
oap-server/server-storage-plugin/storage-shardingsphere-plugin/src/test/java/org/apache/skywalking/oap/server/storage/plugin/jdbc/shardingsphere/
TCITShardingSphere
.java
浏览文件 @
a7210f66
...
...
@@ -116,7 +116,7 @@ import static org.mockito.Mockito.when;
"org.w3c.*"
})
@PrepareForTest
({
DefaultScopeDefine
.
class
})
public
class
ShardingIntegrationTest
{
public
class
TCITShardingSphere
{
@BeforeClass
public
static
void
setup
()
{
PowerMockito
.
mockStatic
(
DefaultScopeDefine
.
class
);
...
...
@@ -172,7 +172,7 @@ public class ShardingIntegrationTest {
}
private
void
startEnv
(
String
dockerComposeName
,
int
dsServicePort
)
{
environment
=
new
DockerComposeContainer
<>(
new
File
(
ShardingIntegrationTest
.
class
environment
=
new
DockerComposeContainer
<>(
new
File
(
TCITShardingSphere
.
class
.
getClassLoader
()
.
getResource
(
dockerComposeName
).
getPath
()))
.
withExposedService
(
"sharding-proxy"
,
3307
,
...
...
pom.xml
浏览文件 @
a7210f66
...
...
@@ -310,6 +310,13 @@
<artifactId>
maven-failsafe-plugin
</artifactId>
<configuration>
<skip>
${skipITs}
</skip>
<!--
Exclude time-consuming tests and run those tests separately in skywalking.yaml.
TCIT means Time Consuming Integration Test.
-->
<excludes>
<exclude>
**/TCIT*.java
</exclude>
</excludes>
</configuration>
<executions>
<execution>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录