Riferimento file di configurazione BaaS

Edge per Private Cloud v4.18.01

Di seguito è riportato un esempio di file di configurazione invisibile per un'installazione BaaS dell'API a 10 nodi. Modifica questo file se necessario per la configurazione. Utilizza l'opzione -f per setup.sh per includerla .

# Specify IP address or DNS name of node.
IP1=192.168.1.1   # ElasticSearch
IP2=192.168.1.2   # ElasticSearch
IP3=192.168.1.3   # ElasticSearch
IP4=192.168.1.4   # API BaaS Stack
IP5=192.168.1.5   # API BaaS Stack
IP6=192.168.1.6   # API BaaS Stack
IP7=192.168.1.7   # API BaaS Portal
IP8=192.168.1.8   # Cassandra (shared with Edge or standalone)
IP9=192.168.1.9   # Cassandra (shared with Edge or standalone)
IP10=192.168.1.10  # Cassandra (shared with Edge or standalone)

# Must resolve to IP address or DNS name of host - not to 127.0.0.1 or localhost.
HOSTIP=$(hostname -i)

# Define the API BaaS administrator account.
AS_ADMIN="superuser"    # User name - default is "superuser".
AS_ADMIN_EMAIL=stackAdmin@email.com
AS_PASSWD=stackAdminPWrod

# Only if you are installing Cassandra.
# Specify Cassandra data center and rack suffix.
# Must use IP addresses for CASS_HOSTS, not DNS names.
# CASS_HOSTS="$IP8:1,1 $IP9:1,1 $IP10:1,1"

# If connecting to existing Cassandra nodes,
# specify Cassandra IPs.
# Must use IP addresses for CASS_HOSTS, not DNS names.
CASS_HOSTS="$IP8 $IP9 $IP10"

# Cassandra uname/pword.
# Even if Cassandra authentication is disabled,
# you must still pass values for these properties.
CASS_USERNAME=cassandra    # Default value
CASS_PASSWORD=cassandra    # Default value

# Specify BaaS Cassandra connection information.
# Specify the data center name.
BAAS_CASS_LOCALDC=dc-1    # Default is dc-1

# For a single data center, specify the same value as BAAS_CASS_LOCALDC.
BAAS_CASS_DC_LIST="dc-1"

# Replication is in the form datacenter_name:number_of_cassandra_nodes
# For example, for dc-1 with three Cassandra nodes, it is dc-1:3.
BAAS_CASS_REPLICATION=dc-1:3

# Defines the initial contact points for members of the BaaS cluster.
# For a single node install, specify the IP address of the node.
BAAS_CLUSTER_SEEDS="dc-1:$IP1"

# ElasticSearch IPs or DNS names, separated by spaces.
ES_HOSTS="$IP1 $IP2 $IP3"

# API BaaS Stack information.
# Default cluster name is "apigee_baas"
BAAS_USERGRID_CLUSTERNAME="apigee_baas"

# URL and port of the load balancer for the API BaaS Stack nodes, 
# or IP/DNS and port 8080 of a single Stack node with no load balancer.
BAAS_USERGRID_URL=http://myloadbalancer:8443

# API BaaS Portal information.
# URL and port number of load balancer, if there is one in front of the Portal,
# or the URL and port of the Portal node.
BAAS_PORTAL_URL="http://$IP7:9000"

# Portal port. Default value is 9000.
BAAS_PORTAL_LISTEN_PORT=9000 

# SMTP information. BaaS requires an SMTP server.
SMTPHOST=smtp.gmail.com
SMTPPORT=465
SMTPUSER=your@email.com
SMTPPASSWORD=yourEmailPassword
SMTPSSL=y
SMTPMAILFROM="My Company <myco@company.com>"

La seguente tabella contiene informazioni aggiuntive su queste proprietà:

Proprietà Nota
CASS_HOSTS

Se installi Cassandra, specifica gli IP dei nodi Cassandra (non i nomi DNS) e includi ":dc,ra" di modifica che specificano il data center e il rack del Nodo Cassandra.

Ad esempio: "192.168.124.201:1,1 = datacenter 1 e rack/zona disponibilità 1 e '192.168.124.204:2,1 = data center 2 e rack/zona disponibilità 1.

CASS_USERNAME
CASS_PASSWORD

Nome utente e password Cassandra.

Se l'autenticazione Cassandra è disabilitata, devi comunque passare questi valori. Tuttavia, i valori vengono ignorati.

BAAS_CASS_LOCALDC

I nomi delle regioni devono avere il formato dc-#, dove # corrisponde a un valore intero.

Ad esempio, dc-1, dc-2 e così via. Se ti connetti a un cluster Cassandra installato con Edge, puoi chiedere questo valore all'amministratore di sistema Edge. In un singolo Edge dell'installazione del data center, il valore predefinito è dc-1.

Se hai installato Cassandra durante l'installazione dell'API BaaS, durante Cassandra installazione hai aggiunto il comando ":dc,ra" agli indirizzi IP di Cassandra. Il primo valore "dc" è il numero del data center. Il nome del data center è la stringa "dc-" con il numero del data center come suffisso.

BAAS_CASS_DC_LIST Specifica lo stesso valore di BAAS_CASS_LOCALDC.
BAAS_CASS_REPLICATION

Il formato è datacenter_name:number_of_cassandra_nodes. Ad esempio: per dc-1 con tre nodi Cassandra, è "dc-1:3".

Per l'installazione di un secondo data center, specificare le informazioni per entrambi i data center:

BAAS_CASS_REPLICATION=dc-1:3,dc-2:3
BAAS_CLUSTER_SEEDS

Definisce i punti di contatto iniziali per i membri del cluster BaaS. Specifica una virgola elenco separato dei nodi di origine dello stack BaaS nel data center, racchiusi in virgolette, nella forma "dc-#:nodeIP", dove dc-# è il nome del data center come definito da BAAS_CASS_LOCALDC.

Per l'installazione di un singolo nodo, specifica l'indirizzo IP del nodo.

In un ambiente di produzione con almeno tre nodi dello stack BaaS nel data center, specificare due nodi stack come seed. Non specificare più di due nodi anche se hai tre o più nodi stack.

Per più data center, specifica solo i nodi di origine in quel data center.

BAAS_USERGRID_URL

In un ambiente di produzione, questi sono l'URL e la porta del bilanciatore del carico che si trova davanti ai nodi dello stack BaaS dell'API, nel formato:

http://stack_load_balancer:port

Ad esempio:

http://mystackloadbalancer:8443

In un ambiente di test o di sviluppo in cui è presente un solo stack BaaS API , può essere l'URL e il numero di porta di un nodo API BaaS Stack, nel formato:

http://stack_IP_or_DNS:port

Ad esempio:

http://mystackip:8080

Il numero di porta del server API BaaS Stack è 8080.

BAAS_PORTAL_URL

L'URL e il numero di porta del bilanciatore del carico, se presenti davanti al portale, nel formato:

http://portal_load_balancer:port

Ad esempio:

http://myportalloadbalancer:8443

Se non è presente un bilanciatore del carico, specifica l'URL e il numero di porta del nodo del portale nel modulo seguente:

http://portal_IP_or_DNS:port

Ad esempio:

http://myportal:9000

Per impostazione predefinita, il numero di porta per il portale API BaaS è 9000.

BAAS_PORTAL_LISTEN_PORT

Il numero di porta per il server del portale BaaS API è 9000. Se questa porta non è disponibile, specificare una porta diversa.

Se imposti BAAS_PORTAL_URL sull'URL del Per quanto riguarda il nodo del portale, i numeri di porta devono essere uguali per entrambe le proprietà.

SMTPHOST
SMTPUSER
SMTPPASSWORD
SMTPSSL
SMTPPORT
SMTPMAILFROM

Configura SMTP in modo che API BaaS possa inviare email per password perse e altri notifiche.

Se non sono necessarie credenziali utente SMTP, ometti SMTPUSER e SMTPPASSWORD.