アプリを CloudFoundry に正常に公開しました。VMC トンネリングと mongorestore を使用してデータベースをシードしようとすると、データの一部のみが転送されます。復元プロセスがコレクションの途中で停止します。mongorestore を使用してダンプをローカルの mongo インスタンスに復元すると、うまく機能します。
$vmc tunnel energy mongorestore
Opening tunnel on port 10000... OK
Waiting for local tunnel to become available... OK
Directory or filename to restore from> ./dump/energy
connected to: localhost:10000
Wed Jan 16 09:22:25 ./dump/energy/twohourlyhistoryDatas.bson
Wed Jan 16 09:22:25 going into namespace [db.twohourlyhistoryDatas]
Wed Jan 16 09:22:27 warning: Restoring to db.twohourlyhistoryDatas without dropping.
Restored data will be inserted without raising errors; check your server log
795 objects found
Wed Jan 16 09:22:27 Creating index: { key: { _id: 1 }, ns: "db.twohourlyhistoryDatas", name: "_id_" }
これを数時間放置しましたが、まだ完了していません。ネットワーク モニターを使用すると、データが 10 ~ 15 秒間転送され、その後突然停止することがわかります。vmc の冗長モードをオンにしても、エラーは発生していません。同じコマンドと非常に詳細な出力を使用してmongorestoreを直接実行しても、問題は明らかになりません。
これとは別に、CloudFoundry の使用は非常に簡単です。問題を解決するために今どこを見るべきかについての提案は大歓迎です!