forked from MystenLabs/sui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[data ingestion] split core engine and mysten pipelines (MystenLabs#1…
…6103) this enables a cleaner experience for external developers, eliminating the need to include dependencies specific to the Mysten ingestion pipelines, such as S3, DynamoDB, etc
- Loading branch information
Showing
22 changed files
with
103 additions
and
34 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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,31 @@ | ||
[package] | ||
name = "sui-data-ingestion-core" | ||
authors = ["Mysten Labs <[email protected]>"] | ||
license = "Apache-2.0" | ||
publish = false | ||
edition = "2021" | ||
version = "0.1.0" | ||
|
||
[dependencies] | ||
anyhow.workspace = true | ||
async-trait.workspace = true | ||
backoff.workspace = true | ||
futures.workspace = true | ||
mysten-metrics.workspace = true | ||
notify.workspace = true | ||
serde.workspace = true | ||
serde_json.workspace = true | ||
object_store.workspace = true | ||
prometheus.workspace = true | ||
telemetry-subscribers.workspace = true | ||
tokio = { workspace = true, features = ["full"] } | ||
tracing.workspace = true | ||
sui-storage.workspace = true | ||
sui-types.workspace = true | ||
url.workspace = true | ||
workspace-hack.workspace = true | ||
|
||
[dev-dependencies] | ||
rand.workspace = true | ||
tempfile.workspace = true | ||
sui-types = { workspace = true, features = ["test-utils"] } |
File renamed without changes.
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,17 @@ | ||
// Copyright (c) Mysten Labs, Inc. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
mod executor; | ||
mod metrics; | ||
mod progress_store; | ||
mod reader; | ||
#[cfg(test)] | ||
mod tests; | ||
mod worker_pool; | ||
mod workers; | ||
|
||
pub use executor::IndexerExecutor; | ||
pub use metrics::DataIngestionMetrics; | ||
pub use progress_store::{FileProgressStore, ProgressStore}; | ||
pub use worker_pool::WorkerPool; | ||
pub use workers::Worker; |
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,14 @@ | ||
// Copyright (c) Mysten Labs, Inc. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
use anyhow::Result; | ||
use async_trait::async_trait; | ||
use sui_types::full_checkpoint_content::CheckpointData; | ||
|
||
#[async_trait] | ||
pub trait Worker: Send + Sync { | ||
async fn process_checkpoint(&self, checkpoint: CheckpointData) -> Result<()>; | ||
async fn save_progress(&self) -> bool { | ||
true | ||
} | ||
} |
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
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,20 +1,10 @@ | ||
// Copyright (c) Mysten Labs, Inc. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
mod executor; | ||
mod metrics; | ||
mod progress_store; | ||
mod reader; | ||
#[cfg(test)] | ||
mod tests; | ||
mod worker_pool; | ||
mod workers; | ||
|
||
pub use executor::IndexerExecutor; | ||
pub use metrics::DataIngestionMetrics; | ||
pub use progress_store::{DynamoDBProgressStore, FileProgressStore}; | ||
pub use worker_pool::WorkerPool; | ||
pub use progress_store::DynamoDBProgressStore; | ||
pub use workers::{ | ||
ArchivalConfig, ArchivalWorker, BlobTaskConfig, BlobWorker, KVStoreTaskConfig, KVStoreWorker, | ||
Worker, | ||
}; |
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
2 changes: 1 addition & 1 deletion
2
...-ingestion/src/progress_store/dynamodb.rs → .../sui-data-ingestion/src/progress_store.rs
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
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
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
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
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,20 +1,9 @@ | ||
// Copyright (c) Mysten Labs, Inc. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
use anyhow::Result; | ||
use async_trait::async_trait; | ||
use sui_types::full_checkpoint_content::CheckpointData; | ||
mod archival; | ||
mod blob; | ||
mod kv_store; | ||
pub use archival::{ArchivalConfig, ArchivalWorker}; | ||
pub use blob::{BlobTaskConfig, BlobWorker}; | ||
pub use kv_store::{KVStoreTaskConfig, KVStoreWorker}; | ||
|
||
#[async_trait] | ||
pub trait Worker: Send + Sync { | ||
async fn process_checkpoint(&self, checkpoint: CheckpointData) -> Result<()>; | ||
async fn save_progress(&self) -> bool { | ||
true | ||
} | ||
} |
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
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