-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
22 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# source cluster can be the same cluster in like the one configurated in prefs.toml | ||
[source-cluster] | ||
url = "localhost:9200" | ||
user = "" | ||
password = "" | ||
|
||
[[migrations]] | ||
start = false | ||
name = "split_logs_in_events" | ||
description = """ | ||
This migration will split the logs index in a new index events. | ||
This migration will take few days and will increase the size of the Elasticsearch cluster. | ||
DON'T START this migration if the events index already is populated with documents. | ||
""" | ||
source-index = "logs" | ||
destination-index = "events" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
package config |
2 changes: 1 addition & 1 deletion
2
migrations/split/events.go → migrations/split/logstoevents/events.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package split | ||
package logstoevents | ||
|
||
import ( | ||
"bytes" | ||
|
2 changes: 1 addition & 1 deletion
2
migrations/split/events_test.go → migrations/split/logstoevents/events_test.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package split | ||
package logstoevents | ||
|
||
import ( | ||
"github.com/multiversx/mx-chain-es-indexer-go/migrations/dtos" | ||
|
2 changes: 1 addition & 1 deletion
2
migrations/split/interface.go → migrations/split/logstoevents/interface.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package split | ||
package logstoevents | ||
|
||
import ( | ||
"bytes" | ||
|
2 changes: 1 addition & 1 deletion
2
migrations/split/queries.go → migrations/split/logstoevents/queries.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package split | ||
package logstoevents | ||
|
||
import "fmt" | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
migrations/split/serialize.go → migrations/split/logstoevents/serialize.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package split | ||
package logstoevents | ||
|
||
import ( | ||
"encoding/json" | ||
|