Kassian Sun
5af5b2142e
[migration] fix task doc stats
2023-06-05 17:09:42 +08:00
sunjiacheng
0f0794aca7
[migration] support repeating task & incremental index ( #108 )
...
[migration] return error info for comparison/migration task
[migration] list api returns running_children
[migration] add pause/resume and repeating info
mark invalid repeat as done
[migration] fix doc count
revert unneeded changes
cleanup marshals & unmarshals
update apis
v2, unify repeat & incremental configuration
[migration] support repeating task & incremental index
Co-authored-by: Kassian Sun <kassiansun@outlook.com>
Co-authored-by: silenceqi <silenceqi@infini.ltd>
Co-authored-by: liugq <silenceqi@hotmail.com>
Co-authored-by: hardy <luohf@infinilabs.com>
2023-06-05 16:21:00 +08:00
Kassian Sun
155cb4cfbe
[migration] clear child tasks before split task
2023-06-01 06:10:19 +08:00
Kassian Sun
09ba88c411
[migration] get instance from scheduler, initialize instance automatically
2023-05-30 11:41:53 +08:00
Kassian Sun
dd98ba7dff
[migration] don't filter out non-running pipeline task
2023-05-26 16:03:07 +08:00
medcl
241c9f57fb
sleep when no message was found in queue
2023-05-26 12:02:39 +08:00
Kassian Sun
d98ea04037
[comparison] info API update progress calculation
2023-05-25 10:07:43 +08:00
liugq
8d5e7e8a6b
fix empty cluster_uuid
2023-05-23 15:15:56 +08:00
Kassian Sun
1789d74ece
[migration] add option to skip scroll/bulk count check
2023-05-19 19:15:11 +08:00
Kassian Sun
5000deefa9
[migration] fix missing partition for running sub tasks
2023-05-19 19:12:37 +08:00
Kassian Sun
86c8615537
[comparison] always clean queue after task ended
2023-05-19 18:35:04 +08:00
Kassian Sun
a00bc59d6b
[migration] pipeline_task use execution_instance_id from labels
2023-05-19 15:31:42 +08:00
Kassian Sun
be09c69212
[comparison] fill execution_instance_id for pipeline tasks
2023-05-19 15:25:32 +08:00
Kassian Sun
02243264e8
[comparison] merge source/target dump partitions
2023-05-19 14:42:23 +08:00
Kassian Sun
d4202897e1
[migration][util] handle nil slice without error log
2023-05-19 14:15:55 +08:00
Kassian Sun
6cceb8af26
[migration] add back module.go
2023-05-19 09:46:52 +08:00
Kassian Sun
7620a76ef7
[migration] cleanup unused code
2023-05-18 22:27:20 +08:00
Kassian Sun
b95b1ff703
[comparison] add info APIs
...
- add comparison task info & by index info API
- update comparison task permission control
- unify migration task progress calculation
- cluster migration/comparison set start time
- add split task utilities
- clear index migration/comparison state before running
2023-05-18 17:06:34 +08:00
Kassian Sun
5825bd0f71
[migration] split pipeline code, clear labels for each type
2023-05-17 19:11:03 +08:00
Kassian Sun
d0706f460d
[migration] handle dump_hash/index_diff pending_stop
2023-05-17 17:43:44 +08:00
Kassian Sun
8d27425fc0
[migration] fix GetChildTasks
2023-05-17 16:58:38 +08:00
Kassian Sun
556a3d49d8
[migration] extract UpdateStoppedChildTasksToReady
2023-05-17 16:44:27 +08:00
Kassian Sun
7e79c509b2
[comparison] initial implementation
...
- handle new task types: cluster_comparison, index_comparison
- handle new pipeline tasks: dump_hash, index_diff
- split common task APIs
- add cluster_comparison task creation API
- optimize & clean migration codes
2023-05-17 15:43:34 +08:00
liugq
d1ef70d8d1
fix no index,node metadata after console setup
2023-05-17 12:03:31 +08:00
Kassian Sun
e8a0b43fba
[migration][pipeline] filter duplicated logs
2023-05-16 14:34:47 +08:00
Kassian Sun
9f48efe45c
[migration] split cluster_migration
2023-05-16 12:13:39 +08:00
Kassian Sun
ba409072c8
[migration] split scheduler/index_migration
2023-05-16 11:09:00 +08:00
silenceqi
38d2a746f2
Merge pull request '[migration] mark task as stopped if pipeline not found' ( #83 ) from fix/migration into master
2023-05-15 14:42:35 +08:00
Kassian Sun
205744cd44
[migration] mark task as stopped if pipeline not found
2023-05-15 14:37:55 +08:00
silenceqi
4a269acf22
move topn api from framework to console ( #82 )
...
move topn api from framework to console
Co-authored-by: liugq <silenceqi@hotmail.com>
2023-05-10 23:33:35 +08:00
liugq
c37380c009
move insight model from framework to console
2023-05-08 16:23:36 +08:00
liugq
75b912426b
add websocket proxy
2023-05-06 14:53:07 +08:00
Kassian Sun
7c375a8d73
[migration] get es configs dynamically before creating pipeline
2023-04-28 16:13:30 +08:00
liugq
9b3005e005
add refresh index api
2023-04-24 19:41:43 +08:00
Kassian Sun
17a5ad6daa
[migration] scroll pipeline only check last run pipeline log
2023-04-24 16:57:16 +08:00
Kassian Sun
d1e947f826
[migration] check finished pipeline logs by updated time
2023-04-24 16:52:51 +08:00
Kassian Sun
99cf8b769f
[migration] check STOPPED logs after pending_stop
2023-04-24 16:31:44 +08:00
Kassian Sun
cbfe890982
[migration] scroll/bulk support manually retry
2023-04-24 15:58:51 +08:00
liugq
00c48bf9d5
Merge branch 'master' of ssh://git.infini.ltd:64221/infini/console
2023-04-24 14:38:04 +08:00
liugq
0ac40751cd
return pipeline task info
2023-04-24 14:37:57 +08:00
Kassian Sun
b1d3e67954
[migration] index migration skip retrying scroll if possible
2023-04-24 14:22:40 +08:00
Kassian Sun
06554054af
[migration] remove default sleep, schedule by task type & status
2023-04-24 14:19:39 +08:00
Kassian Sun
20498e2e76
[migration] tune cleaning gateway error logs
2023-04-22 15:36:47 +08:00
Kassian Sun
da908cebfb
[migration] fix missing return
2023-04-22 15:23:55 +08:00
Kassian Sun
b263c480c7
[migration] add back instance init error check
2023-04-22 15:02:05 +08:00
Kassian Sun
28a6c55671
[migration] refresh instance state after major task stopped
2023-04-22 14:48:53 +08:00
Kassian Sun
c1ed375813
[migration] print instance task limit in debug level
2023-04-21 18:28:41 +08:00
Kassian Sun
651c86feff
[migration] batch task by task type
2023-04-21 18:21:01 +08:00
sunjiacheng
5ad2e042a9
[migration] remove unused log ( #71 )
...
[migration] remove unused log
Co-authored-by: Kassian Sun <kassiansun@outlook.com>
2023-04-21 16:02:13 +08:00
Kassian Sun
52ff99af0c
[migration] use different error message for old-version tasks
2023-04-20 17:44:45 +08:00
Kassian Sun
e27a51f884
[migration] fix wrong pending_stop notification
2023-04-20 17:44:45 +08:00
Kassian Sun
c691bbc607
[migration] move disk queue clean up to index_migration level
2023-04-20 17:44:45 +08:00
Kassian Sun
ae9134afd5
[migration] fail cluster migration if docs count unmatch
2023-04-20 17:44:45 +08:00
Kassian Sun
57e1fb0844
[migration] optimize major task progress calculation
2023-04-20 17:44:45 +08:00
Kassian Sun
1f95d4af48
[migration] fix major task state handling
2023-04-20 17:44:45 +08:00
Kassian Sun
1bca4335f1
[migration] fix progress when index task is running
2023-04-20 17:44:45 +08:00
Kassian Sun
7d675ba3d1
[migration] optimize scroll/bulk error handling and status resetting
2023-04-20 17:44:45 +08:00
Kassian Sun
c89c8616b1
[migration] clean all business_id checks
2023-04-20 17:44:45 +08:00
Kassian Sun
d37649faa2
[migration] update code review issues
2023-04-20 17:44:45 +08:00
Kassian Sun
527c3c9e46
[migration] delete ready1 state
2023-04-20 17:44:45 +08:00
Kassian Sun
7472052d90
[migration] optimze bulk error message
2023-04-20 17:44:45 +08:00
Kassian Sun
cd85d21ef0
[migration] split es_scroll/bulk_indexing pipeline task
2023-04-20 17:44:44 +08:00
liugq
dd68300ab2
layout search support filtering with param is_fixed
2023-04-20 10:49:24 +08:00
Kassian Sun
1634640134
[migration] fix partion query nil check
2023-04-19 11:34:01 +08:00
Kassian Sun
ff219a211b
[migration] fix query_string json field name
2023-04-19 10:33:16 +08:00
liugq
c6b9f30277
update mapping with specify type
2023-04-18 18:16:27 +08:00
liugq
c32d6b76a1
adding api of delete data migration task
2023-04-18 15:53:07 +08:00
liugq
f18a2bc054
Merge branch 'master' into init_indices
2023-04-17 13:57:49 +08:00
Kassian Sun
eced674817
[migration] cleanup unused target config
2023-04-17 12:41:34 +08:00
Kassian Sun
81c9df8ef4
[migration] fix index source modification
2023-04-17 12:33:23 +08:00
liugq
896adad58b
fix conflicts
2023-04-17 10:27:17 +08:00
liugq
b61d0b1593
add index init api
2023-04-17 10:15:44 +08:00
Kassian Sun
c73c44724d
[migration] index_migration & pipeline define struct
2023-04-14 11:30:16 +08:00
Kassian Sun
db6d33f22b
[migration] always try to clean disk queues
2023-04-12 10:05:51 +08:00
sunjiacheng
dc606e457d
[migration] fix bulk_indexing counting logic ( #60 )
...
[migration] fix bulk_indexing counting logic
Co-authored-by: Kassian Sun <kassiansun@outlook.com>
2023-04-11 15:58:24 +08:00
Kassian Sun
4b12d372f1
[migration] task log copy task labels
2023-04-11 08:30:59 +08:00
liugq
4eb742d47e
format log message of migration task
2023-04-10 18:21:27 +08:00
liugq
b5218b8516
add compress settings of migration
2023-04-10 14:17:18 +08:00
liugq
e8f9c83245
optimize notification api
2023-04-06 21:07:29 +08:00
liugq
3fafe39b0d
add alerting notification
2023-04-06 16:16:44 +08:00
liugq
c8cd0b80a4
Merge branch 'master' of ssh://git.infini.ltd:64221/infini/console
2023-04-06 12:04:12 +08:00
liugq
db1c7322f1
update migration notifaction link url
2023-04-06 12:04:07 +08:00
Kassian Sun
8c623870e3
[notification] support search by keyword
2023-04-06 11:02:34 +08:00
Kassian Sun
b16ff4e888
[migration] track user actions in task logging
2023-04-04 16:18:13 +08:00
Kassian Sun
87d28c9cfc
[migration] fix pending_stop checking logic
2023-04-04 16:02:31 +08:00
sunjiacheng
400bd2d002
[notification] update _search defaults, fix /read ( #53 )
...
[notification] update _search defaults, fix /read
Co-authored-by: Kassian Sun <kassiansun@outlook.com>
2023-04-04 14:49:56 +08:00
liugq
061b528309
Merge branch 'master' of ssh://git.infini.ltd:64221/infini/console
2023-04-04 11:57:38 +08:00
liugq
be533cd609
add resource_id
2023-04-04 11:57:30 +08:00
silenceqi
bae99585c1
Merge pull request '[notification] update enum & list API' ( #52 ) from feature/notification into master
2023-04-04 10:24:42 +08:00
Kassian Sun
c3a1d418d5
[notification] update enum & list API
2023-04-04 10:18:45 +08:00
Kassian Sun
d5d46de854
[migration] improve pending_stop & es error handling
2023-04-03 20:25:45 +08:00
Kassian Sun
b31bb6c090
[migration] update logging logic
2023-04-03 20:25:07 +08:00
Kassian Sun
97f5b958b3
[notification] /read add types param
2023-04-03 18:45:34 +08:00
liugq
272f29403d
fix getting alerting rule 404
2023-04-03 18:05:27 +08:00
liugq
abe7acf177
add privilege control of migration
2023-04-03 11:57:06 +08:00
Kassian Sun
b29dc9ca0f
[migration] check status before start/stop task
2023-04-03 10:04:16 +08:00
Kassian Sun
f9f60b23e7
[notification] update API endpoint
2023-04-02 15:27:51 +08:00
sunjiacheng
8fddcdaf09
[notification] add /notification/read, add message_type ( #47 )
...
[notification] add /notification/read, add message_type
Co-authored-by: Kassian Sun <kassiansun@outlook.com>
2023-04-02 15:02:30 +08:00
sunjiacheng
55ac534b02
[api] add list notification api ( #35 )
...
[api] add list notification api
Co-authored-by: Kassian Sun <kassiansun@outlook.com>
Co-authored-by: liugq <silenceqi@hotmail.com>
Co-authored-by: medcl <m@medcl.net>
Co-authored-by: silenceqi <silenceqi@infini.ltd>
2023-04-01 18:52:02 +08:00
liugq
1a645a655a
support cardinality agg
2023-04-01 12:25:06 +08:00
liugq
9bd5682122
save cluster distribution in major magration task
2023-04-01 11:35:20 +08:00
liugq
3987c5db37
Merge branch 'master' of ssh://git.infini.ltd:64221/infini/console
2023-03-31 14:26:50 +08:00
liugq
f716e2acf5
filter overview cluster
2023-03-31 14:26:11 +08:00
sunjiacheng
e75a566f03
[plugin][migration] add more logs ( #46 )
...
[plugin][migration] add more logs
Co-authored-by: Kassian Sun <kassiansun@outlook.com>
2023-03-30 18:24:26 +08:00
Kassian Sun
6de2e14235
[plugin][migration] add error loggings
2023-03-30 17:18:24 +08:00
liugq
6d537bb798
set es_scroll partition_size default value to 1
2023-03-29 18:41:20 +08:00
liugq
4871fbcb12
checking instance is avaiable when there is no pipeline logs
2023-03-29 16:17:19 +08:00
sunjiacheng
0f5626c41d
[migration] fix source filter dsl ( #43 )
...
[migration] fix source filter dsl
Co-authored-by: Kassian Sun <kassiansun@outlook.com>
2023-03-29 13:03:15 +08:00
sunjiacheng
08a1673c1a
[plugin] fix naming ( #42 )
...
[plugin] fix naming
Co-authored-by: Kassian Sun <kassiansun@outlook.com>
2023-03-29 13:02:55 +08:00
liugq
f187bbe499
add field type and reserved
2023-03-29 11:37:16 +08:00
liugq
305a11ec40
update api url of getting task info with index level
2023-03-29 10:26:05 +08:00
sunjiacheng
633d0333f2
[plugins][migration] status_log -> logging ( #40 )
...
[plugins][migration] status_log -> logging
Co-authored-by: Kassian Sun <kassiansun@outlook.com>
2023-03-28 20:12:23 +08:00
medcl
05cc6fd9d2
add context to pipeline
2023-03-28 19:01:58 +08:00
sunjiacheng
69cf1d67a9
migration_v2 ( #38 )
...
bulk write after docs was scrolled complete
update default config with migration dispatcher
add bulk parameter idle_timeout_in_seconds, slice_size
clear queue before creating pipeline
check instance available when task state is running
add check_instance_available config for migration dispatcher
get migration task progress info by index_name_unique(index_name+doctype)
get instance list only by gateway
get migration task progress info from es and instance pipeline context
rewrite logic of handling running migration major task
calc complete time in api getDataMigrationTaskOfIndex
init
Co-authored-by: liugq <silenceqi@hotmail.com>
2023-03-28 17:54:35 +08:00
sunjiacheng
cd56a4ff24
Merge pull request '[plugin][api] visualization/data supports latest statistics' ( #36 ) from feature/top_hits into master
2023-03-28 10:28:25 +08:00
Kassian Sun
845d77508b
return null if _source is empty
2023-03-23 09:00:07 +08:00
Kassian Sun
17abd00e20
[plugin][api] visualization/data supports top_hits
2023-03-22 19:04:34 +08:00
liugq
bc024bcfce
filter empty group of alerting rule
2023-03-22 10:46:26 +08:00
liugq
99f03fc574
add elastic status overview api
2023-03-16 10:55:21 +08:00
silenceqi
6d2f02af9c
Merge pull request 'Elasticsearch, easysearch, opensearch compatibility update' ( #32 ) from es_distribution into master
2023-03-11 19:11:06 +08:00
liugq
eba379eade
test update
2023-03-11 19:09:25 +08:00
liugq
f27c7a2951
elasticsearch distribution judgement logic update
2023-03-11 13:30:59 +08:00
liugq
c8f7927821
use default distribution with Elasticsarch
2023-03-08 18:01:53 +08:00
liugq
50e8f7fc79
sync cluster distribution to config file while setup
2023-03-08 12:18:08 +08:00
liugq
d37da4679e
use total value instead of doc_value agg as doc count
2023-03-06 15:00:14 +08:00
liugq
d57e9cf476
change es cluster version of system cluster support from 7.3 to 5.3
2023-03-06 10:59:52 +08:00
liugq
2c8ee843f1
refactoring elastic.GetDateHistogramIntervalField
2023-03-02 20:54:21 +08:00
liugq
5d0e745012
support setup with easysearch and opensearch
2023-03-02 17:28:51 +08:00
liugq
662205c540
add layout api permission
2023-02-28 12:27:26 +08:00
liugq
f1c18797b0
add query arg view_id for layout search api
2023-02-27 18:04:07 +08:00
liugq
5637c65977
add view layout api
2023-02-24 19:32:10 +08:00
liugq
ce4a056efa
clear code of builtin user
2023-02-24 12:31:17 +08:00
silenceqi
8431144dca
Merge pull request 'add credential management capabilities' ( #28 ) from credential into master
2023-02-23 11:30:05 +08:00
liugq
0cd198b805
rename tempID to GlobalSystemElasticsearchID
2023-02-23 11:10:38 +08:00
liugq
67382361a1
use orm.Create replace orm.Save method
2023-02-23 09:15:05 +08:00
sunjiacheng
fc8a47373a
[build] fix src/* imports ( #27 )
...
[build] fix src/* imports
Co-authored-by: Kassian Sun <kassiansun@outlook.com>
2023-02-21 21:48:20 +08:00
liugq
5d002145b9
add credential change callback for updating password of system cluster
2023-02-21 15:39:26 +08:00
liugq
a820e0d52f
handle err
2023-02-15 11:55:49 +08:00
liugq
46432da7aa
Merge branch 'master' into credential
2023-02-13 11:35:49 +08:00
liugq
4495de8ae9
initialize bug fixed
2023-02-10 18:16:05 +08:00
liugq
31e314ec87
initialize bug fixed
2023-02-10 18:13:56 +08:00
liugq
e11207dbc0
init credential secret
2023-02-10 09:51:42 +08:00
medcl
844969c5c1
Merge branch 'master' of ssh://git.infini.ltd:64221/infini/console
2023-02-09 14:14:29 +08:00
medcl
c1739df13b
remove unused parameters
2023-02-09 14:14:24 +08:00
liugq
6bcca588cb
fixed error output of parsing migration config
2023-02-08 11:37:33 +08:00
liugq
aaf0822593
remove src from import path
2023-02-08 10:55:16 +08:00
liugq
c22bf646f3
fixed compile error of migration code
2023-02-08 10:51:12 +08:00
liugq
fa9ae1c465
code optimize after code review
2023-02-06 16:51:30 +08:00
medcl
02adb4d121
refactoring pipelines
2023-01-27 12:09:09 +08:00
liugq
e50f273cda
fixed error of getting detail info of alert history
2023-01-06 17:49:52 +08:00
liugq
b93fb2f3c2
refactoring orm.Delete
2022-12-13 14:26:40 +08:00
liugq
c17359adb3
add orm.Context
2022-12-08 20:48:59 +08:00
liugq
b88ec94082
add param refresh to method orm.save
2022-12-08 19:12:07 +08:00
medcl
800567363e
check template file exists during setup
2022-11-09 17:38:27 +08:00
liugq
3bd248f80f
add raw name of system cluster when initializing
2022-10-27 10:20:18 +08:00
liugq
2609e51623
migration log fixed
2022-10-25 20:47:41 +08:00
liugq
71f0871e5a
add host field in getExecutionNodes api
2022-10-25 19:38:35 +08:00
liugq
362129d9f2
fixed setup conflicts
2022-10-25 17:36:01 +08:00
liugq
0922db5024
update getExecutionNodes api
2022-10-25 17:20:28 +08:00
liugq
516e7462ac
fixed merge master conflicts
2022-10-25 16:07:43 +08:00
medcl
ca46c22df4
fix nil exception
2022-10-25 16:01:12 +08:00
liugq
3dedda4e62
fixed merge master conflicts
2022-10-25 15:06:25 +08:00
medcl
523004b2d2
fix nil version during setup
2022-10-25 14:42:06 +08:00
medcl
9a91ca7b70
add skip to initialize api
2022-10-24 19:52:09 +08:00
medcl
e607254cc4
add default alerting rules to setup process
2022-10-24 19:01:49 +08:00
medcl
02aa8c58f8
add replay flow
2022-10-24 17:56:40 +08:00
medcl
2002a38c92
disable builtin user by default
2022-10-23 22:45:41 +08:00
medcl
17136af69d
fix api not for setup module
2022-10-23 11:51:27 +08:00
medcl
48c4368282
enable system monitoring by default
2022-10-22 23:46:51 +08:00
medcl
f90601ef1a
improve setup, fix auth issue
2022-10-22 23:22:16 +08:00
medcl
5892a5ea9b
fix setup module
2022-10-22 20:01:26 +08:00
medcl
af5a252694
setup bootstrap user
2022-10-22 19:49:38 +08:00
medcl
1ccfdb1abb
add setup module to console
2022-10-22 18:40:52 +08:00
liugq
d44aad6797
Merge branch 'master' into migration
2022-10-14 21:47:20 +08:00
liugq
8741742ec7
update elastic count api
2022-10-14 21:43:37 +08:00
liugq
8977808d30
init migration
2022-10-14 16:55:48 +08:00
liugq
008b7243b8
remove test debug log
2022-09-23 18:05:40 +08:00
liugq
7af5c22a1b
filter dashbard by cluster id
2022-09-21 11:08:21 +08:00
liugq
1bce8cc200
count host from .infini_host priority
2022-09-09 21:43:55 +08:00
liugq
320ee33390
count host from .infini_host priority
2022-09-09 20:38:55 +08:00
liugq
fcf6fab9b6
refactor gateway proxy request api
2022-08-19 10:43:24 +08:00
liugq
959132f067
remove sample agg when filter is not empty
2022-08-15 15:26:00 +08:00
liugq
8bdc07e041
fixed no seriesField in options
2022-08-12 20:59:44 +08:00
liugq
1bb10dce50
add preview api
2022-08-12 12:11:21 +08:00
liugq
c314e44b34
fixed date histogram agg search error
2022-08-10 18:58:13 +08:00
liugq
35b01d6645
fixed fetch data panic when group field type is number
2022-08-10 14:16:37 +08:00
liugq
074663f1be
fixed empty groups of number type
2022-08-10 09:26:38 +08:00
liugq
6b57960882
add insight api
2022-07-26 18:49:05 +08:00
liugq
efbf536ceb
fixed security bugs
2022-07-14 15:34:01 +08:00
liugq
0f1074ee60
rename severity to priority
2022-07-13 09:22:31 +08:00
liugq
6cea3bcaf7
rename severity to priority
2022-07-12 18:50:12 +08:00
liugq
62d10346cc
rename severity to priority
2022-07-12 16:35:20 +08:00
liugq
a7cc47ec0b
update alert severity
2022-07-11 14:47:23 +08:00
liugq
7864a482b7
update metric data struct
2022-07-08 14:36:27 +08:00
liugq
29223f50a2
change filter agg to top agg
2022-07-07 14:10:34 +08:00
medcl
ecb2d8a233
update type
2022-07-03 18:40:03 +08:00
liugq
903a058b66
fixed alert metric format
2022-06-29 10:09:36 +08:00
liugq
11a5cced4e
return ignorereason in message detail api
2022-06-23 18:49:21 +08:00
liugq
56aae26b06
return ignorereason in message detail api
2022-06-23 18:35:40 +08:00
liugq
bfaca8823d
add template func add,sub, div, mul
2022-06-23 12:22:04 +08:00