Add the replication section to the mongod.conf file:
$cat /usr/local/etc/mongod.conf
systemLog:
destination: file
path: /usr/local/var/log/mongodb/mongo.log
logAppend: true
storage:
engine: mmapv1
| { | |
| "target": "terminus_exec", | |
| "cancel": "terminus_cancel_build", | |
| "focus": true, | |
| "shell_cmd": "python3 -u \"$file\"", | |
| "cwd": "$file_path", | |
| } |
| # Advanced config for NGINX | |
| server_tokens off; | |
| add_header X-XSS-Protection "1; mode=block"; | |
| add_header X-Content-Type-Options nosniff; | |
| # Redirect all HTTP traffic to HTTPS | |
| server { | |
| listen 80; | |
| server_name www.domain.com domain.com; | |
| return 301 https://$host$request_uri; |
| var redis = require("redis") | |
| , subscriber = redis.createClient() | |
| , publisher = redis.createClient(); | |
| subscriber.on("message", function(channel, message) { | |
| console.log("Message '" + message + "' on channel '" + channel + "' arrived!") | |
| }); | |
| subscriber.subscribe("test"); |
| _CONTENT_GOES_HERE |
Add the replication section to the mongod.conf file:
$cat /usr/local/etc/mongod.conf
systemLog:
destination: file
path: /usr/local/var/log/mongodb/mongo.log
logAppend: true
storage:
engine: mmapv1
| import gym | |
| import numpy as np | |
| import random | |
| from keras.models import Sequential | |
| from keras.layers import Dense, Dropout | |
| from keras.optimizers import Adam | |
| from collections import deque | |
| class DQN: |
| storage: | |
| dbPath: "/data/db/300-mm" | |
| directoryPerDB: true | |
| journal: | |
| enabled: true | |
| systemLog: | |
| destination: file | |
| path: "/data/db/300-mm/mongodb.log" | |
| logAppend: true | |
| timeStampFormat: iso8601-utc |
| storage: | |
| dbPath: "/data/db/300-mm" | |
| directoryPerDB: true | |
| journal: | |
| enabled: true | |
| systemLog: | |
| destination: file | |
| path: "/data/db/300-mm/mongodb.log" | |
| logAppend: true | |
| timeStampFormat: iso8601-utc |
| # By Jake VanderPlas | |
| # License: BSD-style | |
| import matplotlib.pyplot as plt | |
| import numpy as np | |
| def discrete_cmap(N, base_cmap=None): | |
| """Create an N-bin discrete colormap from the specified input map""" |
| # By Jake VanderPlas | |
| # License: BSD-style | |
| import matplotlib.pyplot as plt | |
| import numpy as np | |
| def discrete_cmap(N, base_cmap=None): | |
| """Create an N-bin discrete colormap from the specified input map""" |