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",
|
||||
]
|
||||
|
||||
[[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]]
|
||||
name = "version_check"
|
||||
version = "0.9.5"
|
||||
|
@ -1669,6 +1644,31 @@ dependencies = [
|
|||
"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]]
|
||||
name = "zerocopy"
|
||||
version = "0.7.35"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
[workspace]
|
||||
members = ["./uwusched-nodes"]
|
||||
members = ["./yotei-nodes"]
|
||||
resolver = "2"
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[package]
|
||||
authors = ["xqtc"]
|
||||
description = "Distributed computing with abstract data"
|
||||
name = "uwusched"
|
||||
name = "yotei"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
|
@ -15,27 +15,23 @@ pub mod sched {
|
|||
async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
std::env::set_var("RUST_LOG", CONFIG.log.level.clone());
|
||||
pretty_env_logger::init();
|
||||
use colorful::Color;
|
||||
use colorful::Colorful;
|
||||
use colorful::HSL;
|
||||
println!(" {}", "+--------------+".color(Color::LightBlue));
|
||||
println!(" {}", "| 予定 |".color(Color::LightPink1));
|
||||
println!(
|
||||
"{}",
|
||||
"
|
||||
,--. ,--. ,--. ,--. ,--. ,--.
|
||||
| | | | ,--. ,--. | | | | ,---. ,---. | ,---. ,---. ,-| |
|
||||
| | | | | |.'.| | | | | | ( .-' | .--' | .-. | | .-. : ' .-. |
|
||||
' '-' ' | .'. | ' '-' ' .-' `) \\ `--. | | | | \\ --. \\ `-' |
|
||||
`-----' '--' '--' `-----' `----' `---' `--' `--' `----' `---'
|
||||
Compute Node
|
||||
"
|
||||
.gradient_with_color(HSL::new(0.0, 1.0, 0.5), HSL::new(0.833, 1.0, 0.5))
|
||||
" {}",
|
||||
"+--------------+".color(colorful::RGB::new(252, 252, 252))
|
||||
);
|
||||
println!(" {}", "YOITEI SCHEDULER".color(Color::LightPink1));
|
||||
println!(" {}", " COMPUTE NODE\n".color(Color::LightBlue));
|
||||
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 mut auth = sched::auth_client::AuthClient::connect(server_addr).await?;
|
||||
debug!("{:#?}", &data);
|
||||
debug!("{:#?}", &auth);
|
||||
// alive_check_serve(addr).await?;
|
||||
// Start server here
|
||||
let alive_check_server = alive_check_serve(addr);
|
||||
debug!(
|
||||
"{:#?}",
|
||||
auth.login(tonic::Request::new(LoginRequest {
|
||||
|
@ -43,6 +39,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||
}))
|
||||
.await?
|
||||
);
|
||||
// Await server at end
|
||||
alive_check_server.await?;
|
||||
Ok(())
|
||||
}
|
||||
|
|
@ -70,6 +70,17 @@ fn get_type_of<T>(_: &T) -> &'static str {
|
|||
async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
std::env::set_var("RUST_LOG", CONFIG.log.level.clone());
|
||||
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();
|
||||
match &cli.command {
|
||||
Some(Commands::Start { role }) => {
|
Loading…
Reference in a new issue