asheesh changed the topic of #sandstorm to: Welcome to #sandstorm: home of all things sandstorm.io. Say hi! | Channel glossary: "i,i" means "I have no point, I just want to say". b == thumbs up. | Public logs at https://botbot.me/freenode/sandstorm/ & http://logbot.g0v.tw/channel/sandstorm/today
awans2 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<dwrensha> awans2: are you trying to access /tmp/sandstorm-api immediately on startup?
<dwrensha> unfortunately, that won't work, because the http-bridge waits until it connects to the app server before setting up that socket: https://github.com/sandstorm-io/sandstorm/blob/v0.176/src/sandstorm/sandstorm-http-bridge.c%2B%2B#L2124-L2136
<asheesh> I see, and that's why it wasn't working for me either.
<asheesh> I'll email awans, dwrensha; thanks for noticing that
<asheesh> Out of curiosity, is that restriction important? I guess I'll read the source.
<dwrensha> I guess the enter-grain thing is a bug?
<dwrensha> No, it's a TODO to fix it
<dwrensha> TODO(soon), in fact
<dwrensha> a TODO(soon) dating from May 2014
<asheesh> The enter-grain thing, I can't really tell; for my part, the app server never started listening
<asheesh> I'll retry with it again now that that problem is fixxed
<asheesh> s/fixxed/fixed/
<asheesh> It works for me when the grain is online.
<asheesh> s/grain/app server/
<asheesh> Perhaps awans2's app doesn't bind its own port until it finishes starting
<asheesh> And it defines "finishes starting" as connecting to the capnproto RPC endpoint
<asheesh> emailed awans2!
isd has quit [Quit: Leaving.]
jemc has joined #sandstorm
pie_ has quit [Ping timeout: 250 seconds]
afuentes has joined #sandstorm
afuentes has quit [Ping timeout: 252 seconds]
frigginglorious has quit [Quit: frigginglorious]
frigginglorious has joined #sandstorm
jemc has quit [Ping timeout: 244 seconds]
TC02 has quit [Ping timeout: 244 seconds]
TC02 has joined #sandstorm
frigginglorious has quit [Quit: frigginglorious]
frigginglorious has joined #sandstorm
frigginglorious has quit [Quit: frigginglorious]
D32 has joined #sandstorm
frigginglorious has joined #sandstorm
D32 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
xet7 has quit [Remote host closed the connection]
xet7 has joined #sandstorm
frigginglorious has quit [Quit: frigginglorious]
frigginglorious has joined #sandstorm
frigginglorious has quit [Quit: frigginglorious]
amyers has joined #sandstorm
amyers has quit [Remote host closed the connection]
amyers has joined #sandstorm
rafaelmartins has quit [Read error: Connection reset by peer]
rafaelmartins has joined #sandstorm
prettyvanilla has quit [Quit: Konversation terminated!]
frigginglorious has joined #sandstorm
tdfischer has quit [Read error: Connection reset by peer]
tdfischer has joined #sandstorm
asmyers has joined #sandstorm
amyers has quit [Ping timeout: 258 seconds]
wolcen has joined #sandstorm
sh_smith has joined #sandstorm
bodisiw has joined #sandstorm
asmyers has quit [Ping timeout: 264 seconds]
sydney_u1tangle has quit [Remote host closed the connection]
asmyers has joined #sandstorm
asmyers has quit [Read error: Connection reset by peer]
asmyers has joined #sandstorm
asmyers has quit [Remote host closed the connection]
asmyers has joined #sandstorm
wolcen has quit [Ping timeout: 264 seconds]
prettyvanilla has joined #sandstorm
jemc has joined #sandstorm
<dwrensha> i,i "s&st|m"
wolcen has joined #sandstorm
jemc has quit [Read error: Connection reset by peer]
afuentes has joined #sandstorm
jemc has joined #sandstorm
pie_ has joined #sandstorm
pie_ has quit [Changing host]
pie_ has joined #sandstorm
wolcen_ has joined #sandstorm
* asheesh waves, morning
frigginglorious has quit [Quit: frigginglorious]
Telesight has joined #sandstorm
<phildini> Hello lovely people! If I wanted to spin up a sandstorm instance for 234 civic technologists, how big an instance would I need and what would be the quickest way to do that?
<asheesh> ohai
<asheesh> Quick notes on capacity planning:
<asheesh> # active grains * 100MB = RAM needed, as a ballpark
<asheesh> You could start with a 4GB RAM instance which =approx= 40 active grains, and see how that fares.
<asheesh> People have very few active grains per user since we auto-scale the grains down to 0 processes when not being used.
<asheesh> You should try to have some kind of way to detect high memory use conditions.
<asheesh> This is assuming that cost is a factor. Oh and DigitalOcean is a fine way to get all that.
<asheesh> If cost is no factor, then get a high-RAM VM somewhere (64GB) and then don't worry ever.
<asheesh> (640GB RAM? Who knows)
<phildini> oh interesting.
<phildini> and that RAM-per-grain is a a starting constant, I'mguessing?
<phildini> like, having 10 users using a grain is like 110MB and not 1000MB, yes?
<phildini> Cost is totally a factor.
<phildini> We want low cost, we also want to have it be as high-availability as possible for members.
<dwrensha> phildini: right, once a grain is running, having many simultaneous users does not typically cause it to need much more memory
<phildini> ok. is there a way to batch-provision sandstorm users yet?
<dwrensha> apps have a wide distribution of memory requirements
<dwrensha> e.g. GitLab takes >500Mb for an open grain, GitWeb takes ~ 10MB
<dwrensha> Collections takes < 5MB
<dwrensha> I think we have some basic batch-provisioning features in Sandstorm For Work
<mokomull> I'm curious as an outsider - does RAM tend to be the limiting factor over, say, disk I/O with
<mokomull> I'm curious as an outsider - does RAM tend to be the limiting factor over, say, disk I/O when you end up with multiple databases running simultaneously?
<mokomull> (one of these days I'm going to learn that ^M is enter, and M is next to W in Dvorak)
<zarvox> mokomull: right now I'd say that RAM is the limiting factor, largely due to 1) language runtimes using comparatively large amounts of RAM even when idle and 2) usage patterns of current apps and usage
<zarvox> on average, grains don't have enough data and do enough I/O for I/O to be a major consideration
<zarvox> that could change with the right set of apps, though!
<mokomull> zarvox: And I suppose, with a small resident set for each process, I/O operations are "fast" by -- using RAM! :)
<zarvox> Yeah, the amount of RAM used by e.g. a Python application to just idle with the code loaded is usually way more than the total size of /var for that grain
<mokomull> cPython's memory management still gives me terrible memories.
<Lord> was there an update about mails ?
<Lord> my sandstorm instance can't send mails anymore
<Lord> in fact my mail server is in another container and sandstorm used to talk to ip through local ip address
<dwrensha> Lord: yep
<Lord> but the tls cert doesn't match the ip address
<dwrensha> we're apparently more strict about certain things now
<Lord> is there an option to turn ssl off ?
<dwrensha> maybe don't use port 465?
<dwrensha> this was the big change we made: https://github.com/sandstorm-io/sandstorm/pull/2362
<Lord> i use the port 25 but sandstorm go starttls
<Lord> ok
<Lord> so there is no way to eplicitly disable starttls or disable cert verification ?
<dwrensha> hm. according to the nodemailer README: "options.secure if truethe connection will only use TLS. If false (the default), TLS may still be upgraded to if available via the STARTTLS command."
<dwrensha> and then there is another option: "options.ignoreTLS if this is true and secure is false, TLS will not be used (either to connect, or as a STARTTLS connection upgrade command)."
<dwrensha> I wonder if we should somehow expose that `ignoreTLS` option
<Lord> an option should be interesting
<Lord> for now i'm stuck :-(
<sknebel> Lord: can you turn of STARTTLS announcement for localhost in your mail-daemon?
<zarvox> Lord: eeep, sorry for the breakage :(
<zarvox> If you can make your mail daemon not announce STARTTLS in the HELO/EHLO reply, that ought to fix things for now, as sknebel suggested.
<Lord> i have to read postfix doc
<mokomull> Or giving the internal IP a name that is in the cert (e.g. via subjectAltName) should help :)
<mokomull> </unhelpful-security-guy-perspective>
<zarvox> Lord: in main.cf, smtpd_use_tls = no, if you can afford to disable STARTTLS for all inbound mail
<Lord> hooo mokomull : good idea ! /etc/hosts
<mokomull> Lord: I didn't suggest that directly because I'm not so sure how easy that is to wedge into your Sandstorm container. Other equivalents depend on how your local DNS is set up, I suppose.
<zarvox> Either way, I'll bring up what we should do here at our meeting in 3 minutes. Ideally, we'd like to have the ability to require StartTLS, and to opportunistically encrypt where possible, but we'd also like to not break people's existing setups. :S
<mokomull> zarvox: ISTR Google did something equivalent: they opportunistically upgrade *but* if you can't agree on TLS parameters then it outright fails to deliver rather than falling back to plaintextn.
<mokomull> zarvox: Hm, looking back at the bounce I received, it looks like Google issued a STARTTLS and the *remote* end responded with "454 TLS currently unavailable", so Google took that to mean an outright delivery failure.
neynah has joined #sandstorm
<Lord> no :-( /etc/hosts isn't take into account
<Lord> i'm stuck for now
<Lord> i won't issue a cert with the ip inside
neynah has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<mokomull> Lord: That's typically a good choice, yes :) You could create a mail.internal.example.com that resolves to your internal IP, and add that as a subjectAltName to the certificate, though.
<mokomull> *puts on ops-guy hat* naming things is preferable to IP addresses anyway
neynah has joined #sandstorm
neynah has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
pie_ has quit [Ping timeout: 258 seconds]
wolcen_ has quit [Ping timeout: 244 seconds]
wolcen has quit [Ping timeout: 244 seconds]
wolcen_ has joined #sandstorm
asmyers has quit [Ping timeout: 240 seconds]
xobs has quit [Ping timeout: 240 seconds]
wolcen_ has quit [Ping timeout: 276 seconds]
rafaelmartins has quit [Remote host closed the connection]
Telesight has quit [Quit: Leaving.]
rafaelmartins has joined #sandstorm
xobs has joined #sandstorm
wolcen has joined #sandstorm
rafaelmartins has quit [Remote host closed the connection]
rafaelmartins has joined #sandstorm
wolcen_ has joined #sandstorm
rafaelmartins has quit [Remote host closed the connection]
rafaelmartins has joined #sandstorm
rafaelmartins has quit [Remote host closed the connection]
rafaelmartins has joined #sandstorm
asmyers has joined #sandstorm
rafaelmartins has quit [Remote host closed the connection]
rafaelmartins has joined #sandstorm
bodisiw has quit [Quit: This computer has gone to sleep]
xobs has quit [Ping timeout: 258 seconds]
<asheesh> simonv3: Hi! I don't suppose you'd be interested in my help getting QuickSurvey to support sending outbound emails when there's new data!? see also https://twitter.com/hibbittsdesign/status/765296136160579586
<asheesh> and/or jacksingleton (but he's not here at the moment)
<asheesh> and/or I wish that the platform notifications feature had an email aspect
asmyers has quit [Ping timeout: 250 seconds]
xobs has joined #sandstorm
bodisiw has joined #sandstorm
bodisiw has quit [Client Quit]
asmyers has joined #sandstorm
<asheesh> kentonv: 552KB SPK chat app ^
<zarvox> mrdomino: "Error: remote exception: remote exception: remote exception: expected identity.size() >= 16; identity.size() = 0"
<mrdomino> log in
* mrdomino can't be bothered with anonymous users yet
<zarvox> I'm guessing you need to handle the case where a session is opened by an anonymous user
<zarvox> ah, 'k :)
<mrdomino> :-p
<zarvox> even a "sign in" nudge would be helpful! :)
<asheesh> I feel like The Dream of Sandstorm Is Alive with this app.
<mrdomino> :D
<elimisteve> Error: remote exception: remote exception: remote exception: expected identity.size() >= 16; identity.size() = 0 at Error (native)
<elimisteve> C++ location:(remote):??
<elimisteve> got that, too
<elimisteve> logging in...
<elimisteve> type: failed
<mrdomino> hold on
<mrdomino> fixed
<elimisteve> Nice!
pie_ has joined #sandstorm
pie_ has quit [Changing host]
pie_ has joined #sandstorm
<mrdomino> i just did a quick back of the envelope and realized i need to implement saner polling before using that for anything at all
<mrdomino> so it is dead for now
<mrdomino> but the source is at github.com/mrdomino/sandstorm-bazel
<mrdomino> and asheesh may still have the link to the spk
sydney_untangle has joined #sandstorm
<asheesh> Hah : )
bemasc has quit [Ping timeout: 252 seconds]
<ocdtrekkie> I have fond memories of when I had Android apps on my phone that were less than 100 KB.
bemasc has joined #sandstorm