Lines Matching defs:cluster
421 if (strcmp(conf->url.scheme, "cluster") == 0) {
424 serf_cluster_t *cluster;
430 * pointers to the right cluster inside the conf structure?
432 cluster = apr_hash_get(ctx->clusters,
435 if (!cluster) {
437 "SerfCluster: unable to find cluster %s", conf->url.hostname);
441 cp = ap_lookup_provider(AP_SERF_CLUSTER_PROVIDER, cluster->provider, "0");
445 "SerfCluster: unable to find provider %s", cluster->provider);
451 "SerfCluster: %s is missing list servers provider.", cluster->provider);
457 cluster->params,
462 "SerfCluster: %s list servers returned failure", cluster->provider);
468 "SerfCluster: %s failed to provide a list of servers", cluster->provider);
670 serf_cluster_t *cluster = NULL;
685 cluster = apr_palloc(cmd->pool, sizeof(serf_cluster_t));
686 cluster->name = apr_pstrdup(cmd->pool, argv[0]);
687 cluster->provider = apr_pstrdup(cmd->pool, argv[1]);
688 cluster->params = apr_table_make(cmd->pool, 6);
690 backend = ap_lookup_provider(AP_SERF_CLUSTER_PROVIDER, cluster->provider, "0");
694 "provider '%s'", cluster->provider);
702 apr_table_addn(cluster->params,
707 apr_table_addn(cluster->params,
716 cluster->provider);
719 rv = backend->check_config(backend->baton, cmd, cluster->params);
725 apr_hash_set(ctx->clusters, cluster->name, APR_HASH_KEY_STRING, cluster);
761 "Configure a cluster backend"),