Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

General("Timed out in bb8") #342

Closed
fggarcia opened this issue Jun 23, 2020 · 4 comments
Closed

General("Timed out in bb8") #342

fggarcia opened this issue Jun 23, 2020 · 4 comments

Comments

@fggarcia
Copy link

after doubling the traffic, our application in the production environment started throwing the following error

General ("Timed out in bb8")

our session configuration:

async fn create_db_session (config: & DBConfig) -> std :: result :: Result <CurrentSession, AppError> {
    let auth = StaticPasswordAuthenticator :: new (& config.user, & config.password);

    let nodes_ip_port = get_nodes_ip (config);

    let mut nodes = Vec :: with_capacity (config.hosts.len ());
    for node_ip_port in nodes_ip_port.iter () {
        let node_config = NodeTcpConfigBuilder :: new (node_ip_port.as_str (), auth.clone ())
            .max_size (config.driver.max_connection)
            .min_idle (config.driver.min_idle)
            .max_lifetime (config.driver.max_lifetime (Duration :: from_secs))
            .idle_timeout (config.driver.idle_timeout.map (Duration :: from_secs))
            .build ();
        nodes.push (node_config);
    }

    let cluster_config = ClusterTcpConfig (nodes);
    let session = new_lz4_session (& cluster_config, RoundRobin :: new ());
    Ok (session.await?)
}

Do you have any suggestion?

maybe related to djc/bb8#67 ??

@AlexPikalov
Copy link
Owner

It is very likely those are related issues. Let's see what would be a fix from bb8. I'm afraid this is the only one think we as bb8 consumers can do now.

@fggarcia
Copy link
Author

Hi @AlexPikalov thanks you so much for your response.

Okey.....wait for a fix from bb8.

Close issue.

@AlexPikalov
Copy link
Owner

I'd prefer to keep it opened for tracking purposes

@AlexPikalov AlexPikalov reopened this Jun 30, 2020
@fggarcia
Copy link
Author

Hi @AlexPikalov maybe is preferable to switch to a new connector manager as mozilla-services/syncstorage-rs#794 do. is it possible?? i don't see progress in bb8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants