th1a | hi replaceafill. | 00:08 |
---|---|---|
*** khildin has quit IRC | 00:10 | |
replaceafill | hey th1a | 00:11 |
replaceafill | i sent you an email | 00:11 |
replaceafill | about the book | 00:11 |
th1a | Ah, yes. I just got home. | 00:12 |
replaceafill | i was wondering if we could show a diff in the book | 00:12 |
replaceafill | (not now, in the future) | 00:12 |
replaceafill | explaining changes to 5 config files seems overwhelming :) | 00:12 |
th1a | Seems fine. I can try it tomorrow. | 00:16 |
replaceafill | cool | 00:16 |
replaceafill | thanks | 00:16 |
*** menesis has quit IRC | 00:43 | |
*** replaceafill has quit IRC | 00:43 | |
*** replaceafill has joined #schooltool | 01:04 | |
*** replaceafill has quit IRC | 02:09 | |
*** th1a has quit IRC | 02:38 | |
*** menesis has joined #schooltool | 10:31 | |
*** th1a has joined #schooltool | 11:58 | |
*** menesis has quit IRC | 13:26 | |
*** menesis has joined #schooltool | 14:15 | |
*** replaceafill has joined #schooltool | 15:54 | |
th1a | hi replaceafill. | 16:01 |
replaceafill | hey th1a | 16:01 |
th1a | How are we doing? | 16:01 |
replaceafill | ok, yesterday i checked the two options we discussed for sync'ing | 16:01 |
replaceafill | 1. create a duplicate instance | 16:02 |
replaceafill | 2. sync using zeo from the dashboard | 16:02 |
replaceafill | imho 2. is the way to go | 16:02 |
replaceafill | i created the connection directly from the dashboard using the right config file | 16:03 |
replaceafill | and started the instance as local | 16:03 |
th1a | By "dashboard" do you mean the application or the interface? | 16:03 |
replaceafill | application | 16:03 |
replaceafill | now, i just need a way to show the waiting/errors in the interface | 16:05 |
th1a | Yeah. | 16:05 |
replaceafill | i didn't like option 1 because: | 16:05 |
replaceafill | it requires the user setting up an extra instance | 16:06 |
th1a | Wait, I'm not sure what you mean by a duplicate instance. | 16:06 |
replaceafill | yesterday we talked about setting an extra instance | 16:07 |
replaceafill | that mirrors the "secondary" | 16:07 |
replaceafill | but in a local way | 16:07 |
replaceafill | but that way requires extra configuration | 16:07 |
replaceafill | of a new zeo | 16:08 |
replaceafill | it's possible, but it relies heavily on the user to set it up right | 16:08 |
replaceafill | so you have the instance in the school, right? the primary | 16:08 |
replaceafill | you have an instance in the warehouse, the secondary | 16:08 |
replaceafill | and you'd have a third instance a local replica of the secondary | 16:09 |
replaceafill | ark admins would connect to the local replica | 16:09 |
th1a | OK, so the three database trick is out. | 16:09 |
replaceafill | yes | 16:09 |
th1a | I'm not sure what "sync using zeo" means then. | 16:09 |
replaceafill | plain python is the way to g | 16:09 |
replaceafill | go* | 16:09 |
th1a | To generate reports. | 16:10 |
replaceafill | by "sync using zeo" i mean connecting directly to the school instance, with no schooltool instance involved | 16:10 |
th1a | Except if you want to view the school directly? | 16:11 |
replaceafill | in a ST instance we have the zeo server (zeo.conf) + zeo client (schooltool.conf) | 16:11 |
replaceafill | what i'm proposing is using just the zeo server part of the ST instance | 16:12 |
replaceafill | which is what copies the data from the primary | 16:12 |
replaceafill | i need to wave my hands :D | 16:13 |
th1a | Well... what happens when someone at the central server wants to browse a specific schooltool? | 16:13 |
replaceafill | they'll have a local instance per school | 16:13 |
replaceafill | same idea as before | 16:14 |
th1a | OK. | 16:14 |
th1a | Isn't this more or less what we were thinking all along? | 16:15 |
replaceafill | :D | 16:15 |
replaceafill | yes, but with no schooltool involved | 16:15 |
replaceafill | i mean | 16:15 |
replaceafill | with no schooltool instance acting as the client | 16:15 |
th1a | Python scripts importing SchoolTool objects. | 16:15 |
th1a | ? | 16:15 |
replaceafill | yes | 16:16 |
th1a | OK. | 16:17 |
replaceafill | so, the sync process should: | 16:17 |
replaceafill | stop the local instance | 16:17 |
replaceafill | try to connect to the zeo in the school | 16:18 |
replaceafill | if the connection is successful, wait for the replicate | 16:18 |
replaceafill | disconnect | 16:18 |
replaceafill | start the local instance again | 16:18 |
replaceafill | this process is what i want to show in the dashboard UI | 16:18 |
replaceafill | i mean, as states | 16:19 |
th1a | Well, I was thinking the opposite. | 16:19 |
th1a | They're all secondaries until the rare occurance that someone wants to dig around in one. | 16:19 |
th1a | occurrence | 16:19 |
replaceafill | then you switch it? | 16:19 |
th1a | Yes... this isn't actually a very useful feature. | 16:20 |
th1a | ;-) | 16:20 |
th1a | I mean, replicating the data is. | 16:20 |
th1a | Generating reports on it is. | 16:20 |
replaceafill | i just wanted to avoid modifying config files | 16:20 |
th1a | Actually digging into the instances probably is more something you'd like to know you can do if you need to. | 16:20 |
th1a | Given that the connection may be slow/unreliable, and backup is important, I'd rather have zrs running by default. | 16:21 |
th1a | I'm not sure we're talking about the same issue, because I don't think one would be more difficult than the other, config-wise. | 16:22 |
replaceafill | the other issue i found with this approach was that they may stop zrs completely | 16:22 |
replaceafill | suppose they switch the instance to browse locally | 16:23 |
replaceafill | then forget to switch it back | 16:23 |
th1a | Well, yes, that's the only thing I've been worried about. | 16:23 |
replaceafill | i was thinking we could set a warning dialog | 16:24 |
th1a | Can we schedule it to switch back using celery? | 16:24 |
replaceafill | like in the gradebook | 16:24 |
replaceafill | at least | 16:24 |
th1a | We have to switch it back automatically. | 16:24 |
th1a | There is no question in my mind about that. | 16:24 |
th1a | Again... viewing these directly have very limited usefulness. | 16:24 |
th1a | If people are doing it regularly, we need to find out what they're looking for and write a new report. | 16:25 |
th1a | I guess at this point it could be manual. | 16:25 |
th1a | For proof-of-concept. | 16:25 |
replaceafill | so in your opinion, reports are *the* feature for the dashboard? | 16:25 |
replaceafill | right | 16:25 |
th1a | Yeah. | 16:25 |
replaceafill | not sync'ing | 16:26 |
replaceafill | ok | 16:26 |
replaceafill | good to know :D | 16:26 |
replaceafill | for me it was the other way | 16:26 |
th1a | For that matter, we should probably set a cron job to flip them back to secondaries at midnight. | 16:26 |
th1a | Think about how difficult it would be for you to browse to any useful information in another school's SchoolTool, as an administrator. | 16:27 |
th1a | I don't even know what you'd be looking for. | 16:27 |
replaceafill | got it | 16:27 |
th1a | OTOH, nice to know you can. | 16:28 |
th1a | Still reassuring. | 16:28 |
replaceafill | ok, so warehouse sets one instance per school | 16:30 |
replaceafill | configs zrs to replicate properly | 16:30 |
replaceafill | while instances are running | 16:31 |
replaceafill | they can use the dashboard to create reports | 16:31 |
th1a | Yes... | 16:31 |
replaceafill | which doesn't need to change anything | 16:31 |
replaceafill | BUT if they want to browse an instance | 16:31 |
replaceafill | they use the "Switch" (or whatever button), we display a warning | 16:32 |
replaceafill | stop the instance, change config files accordingly, start back | 16:32 |
replaceafill | give the user a link to the local instance | 16:32 |
replaceafill | or we don't need the switch button? | 16:33 |
replaceafill | i just think it's explicit | 16:33 |
replaceafill | we could use just have a "Browse locally" button | 16:34 |
th1a | We could have it open in another window. | 16:34 |
th1a | The link could say "View and pause data sync" and the "Resume data sync" | 16:35 |
th1a | (depending on the mode) | 16:35 |
replaceafill | +! | 16:35 |
replaceafill | +1 | 16:35 |
replaceafill | ok, i'll start on this | 16:36 |
replaceafill | i feel bad that i was going in a different direction :( | 16:37 |
th1a | I don't think you went very far. | 16:37 |
replaceafill | true | 16:37 |
replaceafill | btw | 16:37 |
replaceafill | sidenote | 16:37 |
th1a | The three database system was worth looking into. | 16:37 |
replaceafill | someone is testing the /ark branches! | 16:38 |
th1a | Yeah, I saw that! | 16:38 |
th1a | lol | 16:38 |
replaceafill | and he found the same bug | 16:38 |
replaceafill | using the sample data | 16:38 |
replaceafill | :| | 16:38 |
th1a | Well, that would be what you'd try. | 16:38 |
replaceafill | i'll warn him it's WIP | 16:39 |
th1a | Yeah, just do that. | 16:39 |
replaceafill | but if he's using sample data i guess he's just trying it | 16:39 |
replaceafill | ok, will do | 16:39 |
replaceafill | i liked the youtube videos :D | 16:39 |
replaceafill | ah th1a | 16:40 |
replaceafill | thanks for checking the book update | 16:40 |
replaceafill | i'll start writing the zrs instructions too | 16:41 |
* replaceafill done | 16:41 | |
th1a | OK, thanks replaceafill. What instructions do they need? | 16:42 |
th1a | I'm not sure what is going to be hard wired at this point. | 16:42 |
th1a | Just filling in IP addresses? | 16:43 |
replaceafill | yes | 16:43 |
th1a | OK. | 16:43 |
replaceafill | host:port | 16:43 |
replaceafill | this is what the sample file has currently: | 16:43 |
replaceafill | replicate-from <SCHOOL_HOST_IP>:7082 | 16:44 |
th1a | OK, cool. | 16:44 |
replaceafill | thanks th1a | 16:44 |
replaceafill | see you later | 16:44 |
th1a | Just making sure you weren't writing a zrs thesis. | 16:44 |
replaceafill | :D | 16:54 |
replaceafill | th1a, Pedro Peña Pérez is the one reviewing the branches! :D | 18:03 |
th1a | Ah! | 18:13 |
th1a | I told him to put bugs in Launchpad. | 18:13 |
th1a | I just didn't think it would be in Spanish. | 18:13 |
*** menesis has quit IRC | 20:18 | |
*** menesis has joined #schooltool | 21:17 | |
*** Lumiere has quit IRC | 21:31 | |
*** Lumiere has joined #schooltool | 21:33 | |
*** menesis has quit IRC | 23:22 | |
*** menesis has joined #schooltool | 23:55 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!