ssh-delivery 0.3.0 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -21,6 +21,7 @@ delivery.config.js
21
21
 
22
22
  ```js
23
23
  const fs = require('fs');
24
+ const os = require('os');
24
25
  const path = require('path');
25
26
 
26
27
  module.exports = {
@@ -74,6 +75,15 @@ module.exports = {
74
75
  },
75
76
  },
76
77
  },
78
+
79
+ // Optional global SFTP upload stream tuning.
80
+ // Smaller values can help on lossy links or with PMTU/fragmentation issues,
81
+ // but may reduce upload throughput.
82
+ uploadTuning: {
83
+ // bytes; defaults from Node streams are used when omitted
84
+ readHighWaterMarkBytes: 16384,
85
+ writeHighWaterMarkBytes: 16384,
86
+ },
77
87
  };
78
88
  ```
79
89
 
@@ -106,6 +116,11 @@ module.exports = {
106
116
  via: 'gate', // Connection to this server will be made via 'gate' server
107
117
  },
108
118
  },
119
+ // Optional global SFTP upload stream tuning.
120
+ uploadTuning: {
121
+ readHighWaterMarkBytes: 16384,
122
+ writeHighWaterMarkBytes: 16384,
123
+ },
109
124
  }
110
125
  ```
111
126
 
@@ -126,3 +141,14 @@ delivery deployToWebServer -c ./custom-config.js
126
141
  ```
127
142
 
128
143
  You can keep servers options with credentials in separate config
144
+
145
+ ## Network Notes
146
+
147
+ Use SFTP stream buffer tuning when the route is unstable (for example, packet loss on VPN)
148
+ or when there are PMTU/fragmentation issues:
149
+
150
+ - `uploadTuning.readHighWaterMarkBytes`
151
+ - `uploadTuning.writeHighWaterMarkBytes`
152
+
153
+ If VPN path has PMTU issues, try lowering `readHighWaterMarkBytes` and `writeHighWaterMarkBytes`
154
+ (for example to `16384` or `8192`).