uwusched -> yoitei
This commit is contained in:
parent
638e80e848
commit
c4a3c03c87
50
Cargo.lock
generated
50
Cargo.lock
generated
|
@ -1459,31 +1459,6 @@ dependencies = [
|
||||||
"serde",
|
"serde",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "uwusched"
|
|
||||||
version = "0.1.0"
|
|
||||||
dependencies = [
|
|
||||||
"anyhow",
|
|
||||||
"bincode",
|
|
||||||
"bson",
|
|
||||||
"clap",
|
|
||||||
"colorful",
|
|
||||||
"lazy_static",
|
|
||||||
"log",
|
|
||||||
"lz4_flex",
|
|
||||||
"pretty_env_logger",
|
|
||||||
"prost",
|
|
||||||
"prost-types",
|
|
||||||
"serde",
|
|
||||||
"serde_json",
|
|
||||||
"tokio",
|
|
||||||
"toml",
|
|
||||||
"tonic",
|
|
||||||
"tonic-build",
|
|
||||||
"tonic-reflection",
|
|
||||||
"uuid",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "version_check"
|
name = "version_check"
|
||||||
version = "0.9.5"
|
version = "0.9.5"
|
||||||
|
@ -1669,6 +1644,31 @@ dependencies = [
|
||||||
"tap",
|
"tap",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "yotei"
|
||||||
|
version = "0.1.0"
|
||||||
|
dependencies = [
|
||||||
|
"anyhow",
|
||||||
|
"bincode",
|
||||||
|
"bson",
|
||||||
|
"clap",
|
||||||
|
"colorful",
|
||||||
|
"lazy_static",
|
||||||
|
"log",
|
||||||
|
"lz4_flex",
|
||||||
|
"pretty_env_logger",
|
||||||
|
"prost",
|
||||||
|
"prost-types",
|
||||||
|
"serde",
|
||||||
|
"serde_json",
|
||||||
|
"tokio",
|
||||||
|
"toml",
|
||||||
|
"tonic",
|
||||||
|
"tonic-build",
|
||||||
|
"tonic-reflection",
|
||||||
|
"uuid",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "zerocopy"
|
name = "zerocopy"
|
||||||
version = "0.7.35"
|
version = "0.7.35"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
[workspace]
|
[workspace]
|
||||||
members = ["./uwusched-nodes"]
|
members = ["./yotei-nodes"]
|
||||||
resolver = "2"
|
resolver = "2"
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
[package]
|
[package]
|
||||||
authors = ["xqtc"]
|
authors = ["xqtc"]
|
||||||
description = "Distributed computing with abstract data"
|
description = "Distributed computing with abstract data"
|
||||||
name = "uwusched"
|
name = "yotei"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
|
@ -15,27 +15,23 @@ pub mod sched {
|
||||||
async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
std::env::set_var("RUST_LOG", CONFIG.log.level.clone());
|
std::env::set_var("RUST_LOG", CONFIG.log.level.clone());
|
||||||
pretty_env_logger::init();
|
pretty_env_logger::init();
|
||||||
|
use colorful::Color;
|
||||||
use colorful::Colorful;
|
use colorful::Colorful;
|
||||||
use colorful::HSL;
|
use colorful::HSL;
|
||||||
|
println!(" {}", "+--------------+".color(Color::LightBlue));
|
||||||
|
println!(" {}", "| 予定 |".color(Color::LightPink1));
|
||||||
println!(
|
println!(
|
||||||
"{}",
|
" {}",
|
||||||
"
|
"+--------------+".color(colorful::RGB::new(252, 252, 252))
|
||||||
,--. ,--. ,--. ,--. ,--. ,--.
|
|
||||||
| | | | ,--. ,--. | | | | ,---. ,---. | ,---. ,---. ,-| |
|
|
||||||
| | | | | |.'.| | | | | | ( .-' | .--' | .-. | | .-. : ' .-. |
|
|
||||||
' '-' ' | .'. | ' '-' ' .-' `) \\ `--. | | | | \\ --. \\ `-' |
|
|
||||||
`-----' '--' '--' `-----' `----' `---' `--' `--' `----' `---'
|
|
||||||
Compute Node
|
|
||||||
"
|
|
||||||
.gradient_with_color(HSL::new(0.0, 1.0, 0.5), HSL::new(0.833, 1.0, 0.5))
|
|
||||||
);
|
);
|
||||||
|
println!(" {}", "YOITEI SCHEDULER".color(Color::LightPink1));
|
||||||
|
println!(" {}", " COMPUTE NODE\n".color(Color::LightBlue));
|
||||||
let server_addr = "http://[::1]:50051";
|
let server_addr = "http://[::1]:50051";
|
||||||
let addr: SocketAddr = "[::1]:50052".parse()?;
|
let addr: SocketAddr = "[::1]:50053".parse()?;
|
||||||
let data = sched::data_client::DataClient::connect(server_addr).await?;
|
let data = sched::data_client::DataClient::connect(server_addr).await?;
|
||||||
let mut auth = sched::auth_client::AuthClient::connect(server_addr).await?;
|
let mut auth = sched::auth_client::AuthClient::connect(server_addr).await?;
|
||||||
debug!("{:#?}", &data);
|
// Start server here
|
||||||
debug!("{:#?}", &auth);
|
let alive_check_server = alive_check_serve(addr);
|
||||||
// alive_check_serve(addr).await?;
|
|
||||||
debug!(
|
debug!(
|
||||||
"{:#?}",
|
"{:#?}",
|
||||||
auth.login(tonic::Request::new(LoginRequest {
|
auth.login(tonic::Request::new(LoginRequest {
|
||||||
|
@ -43,6 +39,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
}))
|
}))
|
||||||
.await?
|
.await?
|
||||||
);
|
);
|
||||||
|
// Await server at end
|
||||||
|
alive_check_server.await?;
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
|
@ -70,6 +70,17 @@ fn get_type_of<T>(_: &T) -> &'static str {
|
||||||
async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
std::env::set_var("RUST_LOG", CONFIG.log.level.clone());
|
std::env::set_var("RUST_LOG", CONFIG.log.level.clone());
|
||||||
pretty_env_logger::init();
|
pretty_env_logger::init();
|
||||||
|
use colorful::Color;
|
||||||
|
use colorful::Colorful;
|
||||||
|
use colorful::HSL;
|
||||||
|
println!(" {}", "+--------------+".color(Color::LightBlue));
|
||||||
|
println!(" {}", "| 予定 |".color(Color::LightPink1));
|
||||||
|
println!(
|
||||||
|
" {}",
|
||||||
|
"+--------------+".color(colorful::RGB::new(252, 252, 252))
|
||||||
|
);
|
||||||
|
println!(" {}", "YOITEI SCHEDULER".color(Color::LightPink1));
|
||||||
|
println!(" {}", " HEAD NODE \n".color(Color::LightBlue));
|
||||||
let cli = Cli::parse();
|
let cli = Cli::parse();
|
||||||
match &cli.command {
|
match &cli.command {
|
||||||
Some(Commands::Start { role }) => {
|
Some(Commands::Start { role }) => {
|
Loading…
Reference in a new issue