Edge per il cloud privato versione 4.17.09
Di seguito è riportato un file di configurazione silenziosa di esempio per un'installazione BaaS API a 10 nodi. Modifica questo file in base alle tue esigenze. Utilizza l'opzione -f per setup.sh per includere questo file.
# 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 "dataCenterName:#CassandraNodes". # 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_HOST |
Se installi Cassandra, specifica gli IP dei nodi Cassandra (non i nomi DNS) e includi il modificatore ":dc,ra" che specifica il data center e il rack del nodo Cassandra. Ad esempio, "192.168.124.201:1, 1 = data center 1 e rack/disponibilità zona 1 e "192.168.124.204:2,1 = datacenter 2 e rack/zona disponibilità 1". |
CASS_USERNAME |
Nome utente e password di Cassandra. Se l'autenticazione di Cassandra è disattivata, devi comunque trasmettere questi valori. Tuttavia, i valori vengono ignorati. |
BAAS_CASS_LOCALDC |
I nomi delle regioni devono essere nel 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 di Edge. In un'installazione a singolo data center di Edge, il valore predefinito è dc-1. Se hai installato Cassandra come parte dell'installazione dell'API BaaS, durante l'installazione di Cassandra hai aggiunto il modificatore ":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. |
REPLICATION_CASS_ |
Il formato è dataCenterName:#CassandraNodes
senza virgolette. Ad esempio, per dc-1 con tre nodi Cassandra, è dc-1:3. 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 un elenco separato da virgole dei nodi di origine BaaS Stack nel data center, racchiuso tra virgolette doppie, nel formato "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 Stack BaaS nel data center, specifica due nodi Stack come seed. Non specificare più di due nodi anche se hai tre o più nodi stack. Per più data center, specificare solo i nodi di origine in tale data center. |
URL_UTENTE_ID_BAA |
In un ambiente di produzione, si tratta dell'URL e della porta del bilanciatore del carico che si trova
davanti ai nodi dell'API BaaS Stack, nel formato: In un ambiente di test o di sviluppo, dove hai un solo nodo API BaaS Stack, può essere l'URL e il numero di porta di un nodo API BaaS Stack, nel formato: http://stackIPorDNS:8080 Il numero di porta per il server API BaaS Stack è 8080. |
URL_PORTAL_BAAS |
L'URL e il numero di porta del bilanciatore del carico, se presente davanti al portale, nel formato: |
BAAS_PORTAL_LISTEN_PORT |
Il numero di porta per il server API BaaS Portal è 9000. Se questa porta non è disponibile, specificane un'altra. Se imposti BAAS_PORTAL_URL sull'URL del nodo del portale, i numeri di porta devono essere gli stessi per entrambe le proprietà. |
SMTPHOST |
Configura SMTP in modo che l'API BaaS possa inviare email per password perse e altre notifiche. Se non sono richieste le credenziali utente SMTP, ometti SMTPUSER e SMTPPASSWORD. |